Skip to content
napi-bindings

Search

Search pages, projects and the Node-API reference

Browse Node-APIshow

napi_cleanup_hook

callbackv3node_api.h

Function pointer used with napi_add_env_cleanup_hook. It will be called when the environment is being torn down.

Function pointer used with napi_add_env_cleanup_hook. It will be called when the environment is being torn down.

Callback functions must satisfy the following signature:

typedef void (*napi_cleanup_hook)(void* data);
View in the official Node.js documentation