GeezerVison is showing github.com — doc: add additional info on TSFN dispatch · nodejs/node@b9c643e
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/n-api.md +5Lines changed: 5 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6070,6 +6070,11 @@ Node.js process exits while there is a thread-safe function still active. |
6070 | 6070 | It is not necessary to call into JavaScript via `napi_make_callback()` because |
6071 | 6071 | Node-API runs `call_js_cb` in a context appropriate for callbacks. |
6072 | 6072 |
|
| 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 | + |
6073 | 6078 | ### Reference counting of thread-safe functions |
6074 | 6079 |
|
6075 | 6080 | Threads can be added to and removed from a `napi_threadsafe_function` object |
|