fix(napi): callback in execute_tokio_future does not need to be Send (#1917)
The resolver does not need to be `Send` or `Sync`, because it's assumed to be called from the same thread that the JavaScript thread is running on.
This commit is contained in:
parent
80f37eeb6a
commit
134707ef1d
1 changed files with 1 additions and 1 deletions
|
@ -1087,7 +1087,7 @@ impl Env {
|
|||
T: 'static + Send,
|
||||
V: 'static + ToNapiValue,
|
||||
F: 'static + Send + Future<Output = Result<T>>,
|
||||
R: 'static + Send + FnOnce(&mut Env, T) -> Result<V>,
|
||||
R: 'static + FnOnce(&mut Env, T) -> Result<V>,
|
||||
>(
|
||||
&self,
|
||||
fut: F,
|
||||
|
|
Loading…
Reference in a new issue