Skip to content

Commit

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

Signed-off-by: Michael Dawson <mdawson@devrus.com>
  • Loading branch information
mhdawson committed Jun 6, 2023
1 parent a929522 commit 08bd4b4
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 callbacks may be invoked in each tick of the event queue.
Applications should not depend on a specific behaviour 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 08bd4b4

Please sign in to comment.