napi_is_sendable

Function napi_is_sendable 

Source
pub unsafe extern "C" fn napi_is_sendable(
    env: napi_env,
    value: napi_value,
    result: *mut bool,
) -> napi_status
Available on crate features napi and api-12 only.
Expand description

Queries a napi_value to check if it is sendable.

§Arguments

  • env - The environment that the API is invoked under.

  • value - The napi_value to be checked.

  • result - Boolean value that is set to true if napi_value is sendable, false otherwise.

§Returns

  • Return the function execution status.

Available since API-level: 12