Unverified Commit 8630f347 authored by Anna Henningsen's avatar Anna Henningsen Committed by Shelley Vohr
Browse files

n-api,src: provide asynchronous cleanup hooks

Sometimes addons need to perform cleanup actions, for example
closing libuv handles or waiting for requests to finish, that
cannot be performed synchronously.

Add C++ API and N-API functions that allow providing such
asynchronous cleanup hooks.

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

PR-URL: https://github.com/nodejs/node/pull/34572


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarGabriel Schulhof <gabriel.schulhof@intel.com>
parent 641a5fb0
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