docs(asynchronous-work): clarify setTimeout() scheduling in process.nextTick guide#98
docs(asynchronous-work): clarify setTimeout() scheduling in process.nextTick guide#98Akankshaaaa-01 wants to merge 3 commits into
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 This is wording-only; it does not change runtime behavior. Reviewed by Cursor Bugbot for commit ac4fb26. Bugbot is set up for automated code reviews on this repo. Configure here. |
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.