napi_create_sendable_object_with_properties

Function napi_create_sendable_object_with_properties 

Source
pub unsafe extern "C" fn napi_create_sendable_object_with_properties(
    env: napi_env,
    property_count: usize,
    properties: *const napi_property_descriptor,
    result: *mut napi_value,
) -> napi_status
Available on crate features napi and api-12 only.
Expand description

Defines a sendable object.

§Arguments

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

  • property_count - The count of object properties.

  • properties - Object properties.

  • result - The created sendable object.

§Returns

  • Return the function execution status.

Available since API-level: 12