Skip to content

Commit 7d76a23

Browse 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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/addons.md

Lines changed: 3 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy