diff options
author | Mathias Buus <mathiasbuus@gmail.com> | 2020-06-09 11:53:47 +0300 |
---|---|---|
committer | Matteo Collina <hello@matteocollina.com> | 2020-06-17 19:24:26 +0300 |
commit | 50fb0199cd274b177e596310018aa02c8067bcb2 (patch) | |
tree | 17eb43c9111d9c33f15036419d8dd29f2c6ff657 /doc/api/n-api.md | |
parent | 1e4187fcf4b8cc27df027fee2c4c266f17f14161 (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.md | 3 |
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 |