Skip to content

Commit 4f242d3

Browse files
mhdawsonCeres6
authored andcommitted
doc: add additional info on TSFN dispatch
Refs: nodejs#48356 Signed-off-by: Michael Dawson <mdawson@devrus.com> PR-URL: nodejs#48367 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent 5293b0a commit 4f242d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/api/n-api.md

+5
Original file line numberDiff line numberDiff line change
@@ -6070,6 +6070,11 @@ Node.js process exits while there is a thread-safe function still active.
60706070
It is not necessary to call into JavaScript via `napi_make_callback()` because
60716071
Node-API runs `call_js_cb` in a context appropriate for callbacks.
60726072

6073+
Zero or more queued items may be invoked in each tick of the event loop.
6074+
Applications should not depend on a specific behavior other than progress in
6075+
invoking callbacks will be made and events will be invoked
6076+
as time moves forward.
6077+
60736078
### Reference counting of thread-safe functions
60746079

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

0 commit comments

Comments
 (0)