mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
doc: add additional info on TSFN dispatch
Refs: https://github.com/nodejs/node/issues/48356 Signed-off-by: Michael Dawson <mdawson@devrus.com> PR-URL: https://github.com/nodejs/node/pull/48367 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This commit is contained in:
1 parent
5cc6eee30d
commit
2a561aefe2
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user