napi_stop_event_loop

Function napi_stop_event_loop 

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

Stop the event loop in current thread.

Support to stop the running event loop in current native thread.

§Arguments

  • env - Current running virtual machine context.

§Returns

  • Return the function execution status.

Available since API-level: 12