Node: Poll phase documentation

Created on 21 Nov 2016  路  8Comments  路  Source: nodejs/node

  • Version:
  • Platform:
  • Subsystem:


/doc/topics/event-loop-timers-and-nexttick.md
The documentation has been moved (https://github.com/nodejs/node/issues/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?

doc help wanted

Most helpful comment

All 8 comments

+1

+1

+1

Use upvotes please, don't +1. It sends an unnecessary email to several hundred people.

@nodejs/documentation This could use some love. It is not exactly incorrect but certainly confusing and somewhat misleading.

+1 and no one to reedit the docs?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Brekmister picture Brekmister  路  3Comments

loretoparisi picture loretoparisi  路  3Comments

danielstaleiny picture danielstaleiny  路  3Comments

srl295 picture srl295  路  3Comments

dfahlander picture dfahlander  路  3Comments