Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2e97d82

Browse files
mafintoshcodebytere
authored andcommittedJul 10, 2020
n-api: document nextTick timing in callbacks
PR-URL: #33804 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
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)
Please sign in to comment.