napi_queue_async_work
napi_status napi_queue_async_work(node_api_basic_env env,
napi_async_work work); [in] env:调用该 API 时所处的环境。[in] work:由napi_create_async_work调用返回的句柄。
如果 API 成功,则返回 napi_ok。
【Returns napi_ok if the API succeeded.】
此 API 请求将先前分配的工作安排执行。一旦它成功返回,就不得再次使用相同的 napi_async_work 项调用此 API,否则结果将是未定义的。
【This API requests that the previously allocated work be scheduled
for execution. Once it returns successfully, this API must not be called again
with the same napi_async_work item or the result will be undefined.】