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); 除非出于 对象生命周期管理 中讨论的原因,否则在函数体内创建 handle 和/或回调作用域并非必要。
【Unless for reasons discussed in Object Lifetime Management, creating a handle and/or callback scope inside the function body is not necessary.】