pub unsafe extern "C" fn napi_delete_async_work(
env: napi_env,
work: napi_async_work,
) -> napi_statusAvailable on crate feature
napi only.Expand description
Free a previously allocated work object.
§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