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


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to