Timer.unref() #6644
Comments
This is to be expected. When you unref the timer in the first case, because the timeout is so short the timer has a chance to run before the process exits. In the second, the timer is set to fire too far in the future and libuv exits the event loop (and the process) before t can be printed to the console. This is why timers aren't unreferenced by default. |
thanks for clarifying @othiym23 I was confused by what I was supposed to be seeing here. So while he's right it's not entirely surprising, I am slightly bemused by the fact that it's happening and I want to look at the event loop more closely to see how this happens more precisely |
so,if
the result is Uncertain .... |
Unref'ing a handle in general will result in less than predictable |
*asking not waking ... stupid autocorrect |
thank you @tjfontaine |
Think this is non-issue. Ping if this isn't the case. |
actually I still want to investigate this. |
@tjfontaine ... were there any followups on this? |
Closing due to lack of activity |
and
These two code snippets to be run ,but the result is different .
The text was updated successfully, but these errors were encountered: