Hi! You could use `uv_prepare_t`, or `uv_idle_t`, or `uv_check_t` depending on your needs. See https://github.com/joyent/libuv/blob/master/include/uv.h#L1253 for details.
Cheers, Fedor. On Fri, Feb 21, 2014 at 12:56 AM, Kevin Ingwersen <[email protected]> wrote: > Hey there. > > I need to add a function to libuv's event loop. It must be run each time in > the stack, and once I do not want the function to run anymore, i need to be > able to "unplug" the function. How can I archieve this? > > Kind regards, Ingwie. > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
