Open
Description
Refs: 6600954
Here is how my code works in a nutshell:
- There are 2 unref'd handles that check if there are promises to run (1 prepare, 1 check)
- If there are any promises to run they start an idle handle, which is ref'd
- Timers run on a uv_timer_t
After this change, timers run last, and thus my check handle hasn't run as the last thing, which is what I used to keep the loop alive by starting the idle handle. This means the loop could exit early, if new promises were created on a timer, since check handles no longer run afterwards.
Originally posted by @saghul in #3686 (comment)