From 1c61728f10d520df5f9b28c415a0db68e478b9c7 Mon Sep 17 00:00:00 2001 From: Ashley Date: Wed, 15 Jan 2020 20:12:32 +0100 Subject: [PATCH] Use to_poll on wasm --- client/service/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/service/src/lib.rs b/client/service/src/lib.rs index 834ad403e8d38..5be93c07597f3 100644 --- a/client/service/src/lib.rs +++ b/client/service/src/lib.rs @@ -324,7 +324,10 @@ impl Future for } while let Poll::Ready(Some(task_to_spawn)) = Pin::new(&mut this.to_spawn_rx).poll_next(cx) { + #[cfg(not(target_os = "unknown"))] tokio::spawn(task_to_spawn); + #[cfg(target_os = "unknown")] + this.to_poll.push(task_to_spawn); } // Polling all the `to_poll` futures.