Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Buus <mathiasbuus@gmail.com>2020-06-09 11:53:47 +0300
committerMatteo Collina <hello@matteocollina.com>2020-06-17 19:24:26 +0300
commit50fb0199cd274b177e596310018aa02c8067bcb2 (patch)
tree17eb43c9111d9c33f15036419d8dd29f2c6ff657 /doc/api/n-api.md
parent1e4187fcf4b8cc27df027fee2c4c266f17f14161 (diff)
n-api: document nextTick timing in callbacks
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'doc/api/n-api.md')
-rw-r--r--doc/api/n-api.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/api/n-api.md b/doc/api/n-api.md
index 58e79c6e993..ae0b0b09d06 100644
--- a/doc/api/n-api.md
+++ b/doc/api/n-api.md
@@ -4755,6 +4755,9 @@ is sufficient and appropriate. Use of the `napi_make_callback` function
may be required when implementing custom async behavior that does not use
`napi_create_async_work`.
+Any `process.nextTick`s or Promises scheduled on the microtask queue by
+JavaScript during the callback are ran before returning back to C/C++.
+
### napi_open_callback_scope
<!-- YAML
added: v9.6.0