pub unsafe extern "C" fn napi_queue_async_work(
env: napi_env,
work: napi_async_work,
) -> napi_statusAvailable on crate feature
napi only.Expand description
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.
§Arguments
-
env- Current running virtual machine context. -
work- The handle returned by the call to napi_create_async_work.
§Returns
- Returns the function execution status.
[
napi_ok] If the function executed successfully.
[napi_invalid_arg] If the param env and(or) work is nullptr.
Available since API-level: 10