fix(napi): need Send with Task trait

This commit is contained in:
LongYinan 2020-08-06 14:52:00 +08:00
parent 8f02c65831
commit e866278654
No known key found for this signature in database
GPG key ID: A3FFE134A3E20881

View file

@ -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;