napi_async_complete_callback
与支持异步操作的函数一起使用的函数指针。回调函数必须满足以下签名:
¥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.