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:Gabriel Schulhof <gabriel.schulhof@intel.com> Co-authored-by:
Anna Henningsen <github@addaleax.net> PR-URL: https://github.com/nodejs/node/pull/34819 Reviewed-By:
Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By:
Zeyu Yang <himself65@outlook.com>
parent
3089f96e
Please register or sign in to comment