Commit 0848f56c authored by Gabriel Schulhof's avatar Gabriel Schulhof
Browse files

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 from the point where the
  hook gets called. Removal of the handle remains mandatory.

Fixes: https://github.com/nodejs/node/issues/34715


Signed-off-by: default avatarGabriel Schulhof <gabriel.schulhof@intel.com>
Co-authored-by: default avatarAnna Henningsen <github@addaleax.net>
PR-URL: https://github.com/nodejs/node/pull/34819


Reviewed-By: default avatarMichael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: default avatarZeyu Yang <himself65@outlook.com>
parent 3089f96e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment