napi_delete_reference

Function napi_delete_reference 

Source
pub unsafe extern "C" fn napi_delete_reference(
    env: napi_env,
    ref_: napi_ref,
) -> napi_status
Available on crate feature napi only.
Expand description

Deletes the reference passed in.

§Arguments

  • env - Current running virtual machine context.

  • ref - The napi_ref to be deleted.

§Returns

  • Returns the function execution status. [napi_ok] If the function executed successfully.

[napi_invalid_arg] If env or ref is nullptr.

Available since API-level: 10