diff --git a/napi/src/task.rs b/napi/src/task.rs index 9747cddf..af36c6f6 100644 --- a/napi/src/task.rs +++ b/napi/src/task.rs @@ -1,7 +1,7 @@ use crate::js_values::NapiValue; use crate::{Env, Result}; -pub trait Task { +pub trait Task: Send { type Output: Send + Sized + 'static; type JsValue: NapiValue;