Stability: 1 - Experimental

    1. NAPI_EXTERN napi_status napi_remove_async_cleanup_hook(
    2. napi_async_cleanup_hook_handle remove_handle);
    • [in] remove_handle: The handle to an asynchronous cleanup hook that was created with [napi_add_async_cleanup_hook][].

    Unregisters the cleanup hook corresponding to remove_handle. This will prevent the hook from being executed, unless it has already started executing. This must be called on any napi_async_cleanup_hook_handle value obtained from [napi_add_async_cleanup_hook][].