napi_close_callback_scope

Function napi_close_callback_scope 

Source
pub unsafe extern "C" fn napi_close_callback_scope(
    env: napi_env,
    scope: napi_callback_scope,
) -> napi_status
Available on crate features napi and api-11 only.
Expand description

Closes the callback scope. The capabilities related to ‘async_hook’ are not supported currently.

§Arguments

  • env - Current running virtual machine context.

  • scope - The callback scope to be closed.

§Returns

  • Returns the function execution status.

Available since API-level: 11