Struct napi::bindgen_prelude::AsyncTask
source · pub struct AsyncTask<T: Task> { /* private fields */ }
Implementations§
source§impl<T: Task> AsyncTask<T>
impl<T: Task> AsyncTask<T>
pub fn new(task: T) -> Self
pub fn with_signal(task: T, signal: AbortSignal) -> Self
pub fn with_optional_signal(task: T, signal: Option<AbortSignal>) -> Self
Trait Implementations§
source§impl<T: Task> ToNapiValue for AsyncTask<T>
impl<T: Task> ToNapiValue for AsyncTask<T>
source§unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Safety Read more