summaryrefslogtreecommitdiffstats
path: root/futures/src/executor/null.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 18:24:07 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 21:37:17 +0700
commit167be45a7db7c1f60a79116766bdf38300429c6a (patch)
tree5af48807c8d90a73775fef68a51ae549880aa388 /futures/src/executor/null.rs
parent5dab5a327ef643ee38ac3e42ab35212fff445631 (diff)
downloadiced-167be45a7db7c1f60a79116766bdf38300429c6a.tar.gz
iced-167be45a7db7c1f60a79116766bdf38300429c6a.tar.bz2
iced-167be45a7db7c1f60a79116766bdf38300429c6a.zip
Split `iced_futures` into different `backend` implementations
Diffstat (limited to 'futures/src/executor/null.rs')
-rw-r--r--futures/src/executor/null.rs19
1 files changed, 0 insertions, 19 deletions
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<Self, futures::io::Error> {
- Ok(Self)
- }
-
- #[cfg(not(target_arch = "wasm32"))]
- fn spawn(&self, _future: impl Future<Output = ()> + Send + 'static) {}
-
- #[cfg(target_arch = "wasm32")]
- fn spawn(&self, _future: impl Future<Output = ()> + 'static) {}
-}