Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7d76a23

Browse filesBrowse files
Trottpull[bot]
authored andcommitted
doc: edit addon text about event loop blocking
PR-URL: #36448 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
1 parent caacf75 commit 7d76a23
Copy full SHA for 7d76a23

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎doc/api/addons.md‎

Copy file name to clipboardExpand all lines: doc/api/addons.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ involving knowledge of several components and APIs:
2828
as interacting with the filesystem, sockets, timers, and system events. libuv
2929
also provides a threading abstraction similar to POSIX threads for
3030
more sophisticated asynchronous addons that need to move beyond the
31-
standard event loop. Addon authors are encouraged to think about how to
31+
standard event loop. Addon authors should
3232
avoid blocking the event loop with I/O or other time-intensive tasks by
33-
off-loading work via libuv to non-blocking system operations, worker threads
34-
or a custom use of libuv's threads.
33+
offloading work via libuv to non-blocking system operations, worker threads,
34+
or a custom use of libuv threads.
3535

3636
* Internal Node.js libraries. Node.js itself exports C++ APIs that addons can
3737
use, the most important of which is the `node::ObjectWrap` class.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.