-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: add topic - event loop, timers, nextTick()
#4936
doc: add topic - event loop, timers, nextTick()
#4936
Conversation
This is a rough draft of a [Topic](https://github.com/nodejs/docs/blob/master/GETTING-STARTED.md#what-we-write) that provides an overview of the event loop, timers, and `process.nextTick()` that is based upon a NodeSource "Need to Node" presentation hosted by @trevnorris: [Event Scheduling and the Node.js Event Loop](https://nodesource.com/resources).
LGTM 👍 |
Reviewing now — at first glance this looks like great info! |
@@ -0,0 +1,174 @@ | |||
# Overview of the Event Loop, Timers, and `process.nextTick()` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should end with a .md
extension.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooops >_<
This is excellent work! |
It might be worth mentioning that |
Thanks for the notes! I must go to my day (evening) job ATM, but I'll address all concerns mentioned ASAP. |
@trevnorris should probably review this also as he has previously done detailed analysis of the event loop for presentations and such. |
I made a diagram in several years ago for the discussion in https://html5.ohtsu.org/node-v0.11.13-eventloop.png |
+1 on this... awesome to see. |
Fantastic work 👍 |
|
||
### Why would that be allowed? | ||
|
||
Why would something like this be included in Node? Part of it is a design |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Node.js
This is a rough draft of a [Topic](https://github.com/nodejs/docs/blob/master/GETTING-STARTED.md#what-we-write) that provides an overview of the event loop, timers, and `process.nextTick()` that is based upon a NodeSource "Need to Node" presentation hosted by @trevnorris: [Event Scheduling and the Node.js Event Loop](https://nodesource.com/resources).
…hjeffharris/node into doc-topic-event-loop-timers-nextTick
Pushed some updates to address issues/concerns/suggestions provided above. |
you need to remove the file without the .md |
thanks! Still a bit of a git novice--learning >_< |
Okay, I believe I have exhausted my capacity to be the guardian of this PR, and it appears that all major concerns have been addressed. Thanks for all the help! @nodejs/collaborators, @nodejs/ctc PTAL |
LGTM! :) |
LGTM |
landed |
👍 |
Yay! Thank you all for your help! |
Adds a new topic that provides an overview of the event loop, timers, and `process.nextTick()` that is based upon a NodeSource "Need to Node" presentation hosted by @trevnorris: Event Scheduling and the Node.js Event Loop (https://nodesource.com/resources). PR-URL: #4936 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Calvin W. Metcalf <calvin.metcalf@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Excellent work @techjeffharris! |
Thank you, @a0viedo ! |
@calvinmetcalf just as a heads up this landed with a bunch of whitespace errors 😢
If you are running |
Adds a new topic that provides an overview of the event loop, timers, and `process.nextTick()` that is based upon a NodeSource "Need to Node" presentation hosted by @trevnorris: Event Scheduling and the Node.js Event Loop (https://nodesource.com/resources). PR-URL: #4936 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Calvin W. Metcalf <calvin.metcalf@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Or even better, use |
Got to correct myself,
does so, and works for both |
Adds a new topic that provides an overview of the event loop, timers, and `process.nextTick()` that is based upon a NodeSource "Need to Node" presentation hosted by @trevnorris: Event Scheduling and the Node.js Event Loop (https://nodesource.com/resources). PR-URL: #4936 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Calvin W. Metcalf <calvin.metcalf@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Adds a new topic that provides an overview of the event loop, timers, and `process.nextTick()` that is based upon a NodeSource "Need to Node" presentation hosted by @trevnorris: Event Scheduling and the Node.js Event Loop (https://nodesource.com/resources). PR-URL: #4936 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Calvin W. Metcalf <calvin.metcalf@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Adds a new topic that provides an overview of the event loop, timers, and `process.nextTick()` that is based upon a NodeSource "Need to Node" presentation hosted by @trevnorris: Event Scheduling and the Node.js Event Loop (https://nodesource.com/resources). PR-URL: #4936 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Calvin W. Metcalf <calvin.metcalf@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This is a
roughdraft of a Topic that provides anoverview of the event loop, timers, and
process.nextTick()
that isbased upon a NodeSource "Need to Node" presentation hosted by
@trevnorris: Event Scheduling and the Node.js Event Loop.
I'm sure there's room for improvement, but this is a start!
PTAL
/cc @nodejs/documentation, @nodejs/collaborators