◐ Shell
clean mode source ↗

doc: edit addon text about event loop blocking · nodejs/node@7d76a23

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.