Skip to content

Commit fd1a48c

Browse files
dankosterMylesBorins
authored andcommitted
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 <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 107735a commit fd1a48c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
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

@@ -141,7 +141,9 @@ the timer's callback. In this example, you will see that the total delay
141141
between the timer being scheduled and its callback being executed will
142142
be 105ms.
143143

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

@@ -473,3 +475,5 @@ myEmitter.on('event', function() {
473475
console.log('an event occurred!');
474476
});
475477
```
478+
479+
[REPL]: https://nodejs.org/api/repl.html#repl_repl

0 commit comments

Comments
 (0)