From e86627865474d32920f0193e2bc4a06561e7892c Mon Sep 17 00:00:00 2001 From: LongYinan Date: Thu, 6 Aug 2020 14:52:00 +0800 Subject: [PATCH] fix(napi): need Send with Task trait --- napi/src/task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;