event loop phase

One of the six stages the Node.js event loop visits in order on every turn: timers, pending callbacks, idle/prepare, poll, check and close callbacks.

In more detail

Each phase has its own queue of callbacks, which it runs until the queue is empty or a limit is reached. Between callbacks Node.js drains the microtask queues. Idle and prepare are internal phases your code cannot schedule into.

Related terms

Taught in

References