pub fn create_promise<F, O>(
js_env: &JsEnv,
name: &str,
future: F,
) -> Result<napi_value, NjError>Expand description
create promise and schedule work when this is finished it will return result in the main thread
pub fn create_promise<F, O>(
js_env: &JsEnv,
name: &str,
future: F,
) -> Result<napi_value, NjError>create promise and schedule work when this is finished it will return result in the main thread