Skip to main content

with_napi_env

Function with_napi_env 

Source
pub(crate) fn with_napi_env<F, R>(env: &Env, f: F) -> R
where F: FnOnce() -> R,
Expand description

Sets the NAPI env for the duration of a closure, then clears it.