napi_async_destroy

Function napi_async_destroy 

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

Destroys the previously created asynchronous context. The capabilities related to ‘async_hook’ are not supported currently.

§Arguments

  • env - Current running virtual machine context.

  • async_context - The async context to be destroyed.

§Returns

  • Returns the function execution status.

Available since API-level: 11