docs(asynchronous-work): clarify setTimeout() scheduling in process.nextTick guide#98
Conversation
Signed-off-by: Akanksha <160621596+Akankshaaaa-01@users.noreply.github.com>
Clarify the wording describing the scheduling of setTimeout(() => {}, 0) relative to process.nextTick().
Signed-off-by: Akanksha <160621596+Akankshaaaa-01@users.noreply.github.com>
👋 Codeowner Review RequestThe following codeowners have been identified for the changed files: Team reviewers: @nodejs/timers @nodejs/nodejs-website Please review the changes when you have a chance. Thank you! 🙏 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryLow Risk Overview The revised text still contrasts that delay with Reviewed by Cursor Bugbot for commit 3baae3f. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
@avivkeller Could you take a look at this PR when you have a chance? Happy to adjust the wording if needed, or close the PR if you think this change isn't necessary. |
Summary
This change clarifies the wording describing
setTimeout(() => {}, 0)in theUnderstanding process.nextTick()guide.The previous wording referred to the callback executing "at the end of next tick", which may be interpreted as a specific event loop timing. The updated wording instead describes it as being scheduled for a future event loop iteration while preserving the beginner-friendly explanation.
No behavioral changes are introduced.