Skip to content

Commit 2a561ae

Browse files
mhdawsonruyadorno
authored andcommitted
doc: add additional info on TSFN dispatch
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>
1 parent 5cc6eee commit 2a561ae

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
@@ -6066,6 +6066,11 @@ Node.js process exits while there is a thread-safe function still active.
60666066
It is not necessary to call into JavaScript via `napi_make_callback()` because
60676067
Node-API runs `call_js_cb` in a context appropriate for callbacks.
60686068

6069+
Zero or more queued items may be invoked in each tick of the event loop.
6070+
Applications should not depend on a specific behavior other than progress in
6071+
invoking callbacks will be made and events will be invoked
6072+
as time moves forward.
6073+
60696074
### Reference counting of thread-safe functions
60706075

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

0 commit comments

Comments
 (0)