Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

doc: Explain process.nextTick timing #5859

Closed
wants to merge 1 commit into from
Closed

Conversation

isaacs
Copy link

@isaacs isaacs commented Jul 16, 2013

Provide more detailed explanation of the timing of process.nextTick
relative to I/O.

Provide more detailed explanation of the timing of `process.nextTick`
relative to I/O.
event loop **before** additional I/O is processed. As a result,
recursively setting nextTick callbacks will block any I/O from
happening, just like a `while(true);` loop.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: the nextTick queue is completely drained each time it is processed. As a result, recursively setting nextTick ...

@isaacs
Copy link
Author

isaacs commented Aug 5, 2013

Landed on bd5ab9c.

@isaacs isaacs closed this Aug 5, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants