napi_cleanup_hook


napi_add_env_cleanup_hook 一起使用的函数指针。当环境被拆除时,它将被调用。

¥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);