-
-
Notifications
You must be signed in to change notification settings - Fork 35.1k
Description
- Version:
- Platform:
- Subsystem:
/doc/topics/event-loop-timers-and-nexttick.md
The documentation has been moved (#10792):
https://github.com/nodejs/nodejs.org/blob/master/locale/en/docs/guides/event-loop-timers-and-nexttick.md
The description of the poll phase is not clear at all to me. Could someone please clarify the (sequence of the) operations in this phase?
Examples:
When the event loop enters the poll phase and there are no timers scheduled, one of two things will happen:
Well, what happens if there are timers scheduled?
If scripts have not been scheduled by
setImmediate(), the event loop will wait for callbacks to be added to the queue, then execute them immediately.
Until... what?
Once the poll queue is empty [...]
This could not even happen if we reached the system-dependent hard limit, right? Would this step be ignored in such cases?