napi_async_complete_callback
callbackv1node_api.hFunction pointer used with functions that support asynchronous operations. Callback functions must satisfy the following signature:
Function pointer used with functions that support asynchronous operations. Callback functions must satisfy the following signature:
typedef void (*napi_async_complete_callback)(napi_env env,
napi_status status,
void* data);
Unless for reasons discussed in Object Lifetime Management, creating a handle and/or callback scope inside the function body is not necessary.