Skip to content

Commit

Permalink
n-api: document nextTick timing in callbacks
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mafintosh authored and mcollina committed Jun 17, 2020
1 parent 1e4187f commit 50fb019
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/api/n-api.md
Expand Up @@ -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
Expand Down

0 comments on commit 50fb019

Please sign in to comment.