napi::bindgen_prelude

Function execute_tokio_future

source
pub fn execute_tokio_future<Data: 'static + Send, Fut: 'static + Send + Future<Output = Result<Data>>, Resolver: 'static + FnOnce(napi_env, Data) -> Result<napi_value>>(
    env: napi_env,
    fut: Fut,
    resolver: Resolver,
) -> Result<napi_value>