pub unsafe extern "C" fn napi_open_critical_scope(
env: napi_env,
scope: *mut napi_critical_scope,
) -> napi_statusAvailable on crate features
napi and api-21 only.Expand description
To open a critical scope.
§Arguments
-
env- Current running virtual machine context. -
scope- A critical scope of type of napi_critical_scope is generated.
§Returns
- Returns the function execution status.
[
napi_ok] If the function executed successfully.
[napi_invalid_arg] If the param scope is nullptr.
Available since API-level: 21