Skip to content

Poll phase documentation #9720

@LucaFranceschini

Description

@LucaFranceschini
  • 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions