From ca213922d043a5532d9ab352c0d54bfca7563871 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 5 Feb 2020 04:14:26 +0100 Subject: Drop `Send` in `Command` and `Executor` on Wasm --- futures/src/runtime.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'futures/src/runtime.rs') diff --git a/futures/src/runtime.rs b/futures/src/runtime.rs index 3be45a26..ede529dc 100644 --- a/futures/src/runtime.rs +++ b/futures/src/runtime.rs @@ -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); } } -- cgit