Skip to content

n-api: re-implement async env cleanup hooks

  • Avoid passing core void* and function pointers into add-on.
  • Document napi_async_cleanup_hook_handle type.
  • Render receipt of the handle mandatory. Removal of the handle remains mandatory.

Fixes: https://github.com/nodejs/node/issues/34715 Signed-off-by: Gabriel Schulhof gabriel.schulhof@intel.com

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading