Skip to content

Commit 9891811

Browse files
Trotttargos
authored andcommitted
doc: edit addon text about event loop blocking
PR-URL: #36448 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Shelley Vohr <[email protected]>
1 parent acd78d9 commit 9891811

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/addons.md

+3-3
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)