Trait Task
napi
pub trait Task: Send { type Output: Send + Sized + 'static; type JsValue: NapiValue; pub fn compute(&mut self) -> Result<Self::Output>; pub fn resolve( self, env: Env, output: Self::Output ) -> Result<Self::JsValue>; }
type Output: Send + Sized + 'static
type JsValue: NapiValue
pub fn compute(&mut self) -> Result<Self::Output>
pub fn resolve(self, env: Env, output: Self::Output) -> Result<Self::JsValue>