Skip to content

Commit 6297b9a

Browse files
dankosteraddaleax
authored andcommittedDec 5, 2016
doc: minor fixes event-loop-timers-and-nexttick.md
Minor fixes and enhancements to event-loop-timers-and-nexttick.md Added missing "be" Added a link to REPL docs Added definition of libuv and a link PR-URL: #9126 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent a8d84d5 commit 6297b9a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
 

‎doc/topics/event-loop-timers-and-nexttick.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ offloading operations to the system kernel whenever possible.
99
Since most modern kernels are multi-threaded, they can handle multiple
1010
operations executing in the background. When one of these operations
1111
completes, the kernel tells Node.js so that the appropriate callback
12-
may added to the **poll** queue to eventually be executed. We'll explain
12+
may be added to the **poll** queue to eventually be executed. We'll explain
1313
this in further detail later in this topic.
1414

1515
## Event Loop Explained
1616

1717
When Node.js starts, it initializes the event loop, processes the
18-
provided input script (or drops into the REPL, which is not covered in
18+
provided input script (or drops into the [REPL][], which is not covered in
1919
this document) which may make async API calls, schedule timers, or call
2020
`process.nextTick()`, then begins processing the event loop.
2121

@@ -144,7 +144,9 @@ the timer's callback. In this example, you will see that the total delay
144144
between the timer being scheduled and its callback being executed will
145145
be 105ms.
146146

147-
Note: To prevent the **poll** phase from starving the event loop, libuv
147+
Note: To prevent the **poll** phase from starving the event loop, [libuv]
148+
(http://libuv.org/) (the C library that implements the Node.js
149+
event loop and all of the asynchronous behaviors of the platform)
148150
also has a hard maximum (system dependent) before it stops polling for
149151
more events.
150152

@@ -480,3 +482,5 @@ myEmitter.on('event', function() {
480482
console.log('an event occurred!');
481483
});
482484
```
485+
486+
[REPL]: https://nodejs.org/api/repl.html#repl_repl

0 commit comments

Comments
 (0)
Please sign in to comment.