Drop Send in Command and Executor on Wasm
This commit is contained in:
parent
9a06e481b7
commit
ca213922d0
8 changed files with 232 additions and 111 deletions
|
|
@ -73,11 +73,13 @@ where
|
|||
for future in futures {
|
||||
let mut sender = self.sender.clone();
|
||||
|
||||
self.executor.spawn(future.then(|message| async move {
|
||||
let future = future.then(|message| async move {
|
||||
let _ = sender.send(message).await;
|
||||
|
||||
()
|
||||
}));
|
||||
});
|
||||
|
||||
self.executor.spawn(future);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue