napi_open_callback_scope

Function napi_open_callback_scope 

Source
pub unsafe extern "C" fn napi_open_callback_scope(
    env: napi_env,
    resource_object: napi_value,
    context: napi_async_context,
    result: *mut napi_callback_scope,
) -> napi_status
Available on crate features napi and api-11 only.
Expand description

Opens a callback scope. The capabilities related to ‘async_hook’ are not supported currently.

§Arguments

  • env - Current running virtual machine context.

  • resource_object - The resource object to be passed to possible ‘async_hook’.

  • context - The context environment for the async operation.

  • result - The generated callback scope.

§Returns

  • Returns the function execution status.

Available since API-level: 11