napi_delete_strong_reference

Function napi_delete_strong_reference 

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

Deletes the strong reference passed in.

§Arguments

  • env - Current running virtual machine context.

  • ref - The napi_strong_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: 21