From 167be45a7db7c1f60a79116766bdf38300429c6a Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 28 Jan 2022 18:24:07 +0700 Subject: Split `iced_futures` into different `backend` implementations --- futures/src/executor/null.rs | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 futures/src/executor/null.rs (limited to 'futures/src/executor/null.rs') diff --git a/futures/src/executor/null.rs b/futures/src/executor/null.rs deleted file mode 100644 index 65e2e2df..00000000 --- a/futures/src/executor/null.rs +++ /dev/null @@ -1,19 +0,0 @@ -use crate::Executor; - -use futures::Future; - -/// An executor that drops all the futures, instead of spawning them. -#[derive(Debug)] -pub struct Null; - -impl Executor for Null { - fn new() -> Result { - Ok(Self) - } - - #[cfg(not(target_arch = "wasm32"))] - fn spawn(&self, _future: impl Future + Send + 'static) {} - - #[cfg(target_arch = "wasm32")] - fn spawn(&self, _future: impl Future + 'static) {} -} -- cgit