Yeah, repeating timer is just an API sugar over the regular timers.

On Fri, Jul 25, 2014 at 1:31 PM, Saúl Ibarra Corretgé <[email protected]>
wrote:

> On 07/25/2014 11:25 AM, William Ehlhardt wrote:
> > On Friday, July 25, 2014 4:24:30 AM UTC-5, Fedor Indutny wrote:
> >
> >     What if the callback execution would take 1000ms to run? Would you
> >     like it to just constantly spin?
> >
> >
> > Yep. I'll deal with the consequences of that myself.
> >
>
> There are multiple opinions about how that should go. I for one would
> get rid of the timer repeat functionality and leave it on the hands of
> the user so you calculate the time you want. Anyway, you can calculate
> how long your callback took to execute and use uv_timer_set_repeat to
> modify it, or just call uv_timer_start with the new timeout.
>
>
> Cheers,
>
> --
> Saúl Ibarra Corretgé
> bettercallsaghul.com
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to