Skip to content

Commit

Permalink
doc: add additional info on TSFN dispatch
Browse files Browse the repository at this point in the history
Refs: #48356

Signed-off-by: Michael Dawson <mdawson@devrus.com>

PR-URL: #48367
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
  • Loading branch information
mhdawson authored and ruyadorno committed Sep 12, 2023
1 parent 5cc6eee commit 2a561ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6066,6 +6066,11 @@ Node.js process exits while there is a thread-safe function still active.
It is not necessary to call into JavaScript via `napi_make_callback()` because
Node-API runs `call_js_cb` in a context appropriate for callbacks.

Zero or more queued items may be invoked in each tick of the event loop.
Applications should not depend on a specific behavior other than progress in
invoking callbacks will be made and events will be invoked
as time moves forward.

### Reference counting of thread-safe functions

Threads can be added to and removed from a `napi_threadsafe_function` object
Expand Down

0 comments on commit 2a561ae

Please sign in to comment.