Skip to content

Commit 2e97d82

Browse files
mafintoshcodebytere
authored andcommitted
n-api: document nextTick timing in callbacks
PR-URL: #33804 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent ba813dd commit 2e97d82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/n-api.md

+3
Original file line numberDiff line numberDiff line change
@@ -4728,6 +4728,9 @@ is sufficient and appropriate. Use of the `napi_make_callback` function
47284728
may be required when implementing custom async behavior that does not use
47294729
`napi_create_async_work`.
47304730

4731+
Any `process.nextTick`s or Promises scheduled on the microtask queue by
4732+
JavaScript during the callback are ran before returning back to C/C++.
4733+
47314734
### napi_open_callback_scope
47324735
<!-- YAML
47334736
added: v9.6.0

0 commit comments

Comments
 (0)