Drop Send in Command and Executor on Wasm

This commit is contained in:
Héctor Ramón Jiménez 2020-02-05 04:14:26 +01:00
parent 9a06e481b7
commit ca213922d0
8 changed files with 232 additions and 111 deletions

View file

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