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 <[email protected]>

PR-URL: #48367
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
  • Loading branch information
mhdawson authored and RafaelGSS committed Jul 3, 2023
1 parent 17a0e1d commit b9c643e
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 @@ -6070,6 +6070,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 b9c643e

Please sign in to comment.