Event Loop Phase:
This phase is only used internally.
Back
poll
Front
Event Loop Phase:
This phase will retrieve new I/O events;
Execute I/O related callbacks (almost all with the exception of close callbacks, the ones scheduled by timers, and setImmediate());
Node will block here when appropriate.
Back
First-In, First-Out (FIFO)
Front
Each phase has a _____ queue of callbacks to execute.
Back
check
Front
Event Loop Phase:
setImmediate() callbacks are invoked during this phase.
Back
phase
Front
Each step/section in the event loop
Back
timers
Front
Event Loop Phase:
This phase executes callbacks scheduled by setTimeout() and setInterval().
Back
pending callbacks
Front
Event Loop Phase:
This phase executes I/O callbacks deferred to the next loop iteration.
Back
close callbacks
Front
Event Loop Phase:
During this phase all on('close') event callbacks are processed.