summaryrefslogtreecommitdiffstats
path: root/futures/src/executor/null.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-01-31 17:01:19 +0700
committerLibravatar GitHub <noreply@github.com>2022-01-31 17:01:19 +0700
commite4ef29ef20724c3d1a4beff39ddfdaf6d45f9683 (patch)
tree6e0c9c38366c9d70204c80fc66bd8e8a7652cf52 /futures/src/executor/null.rs
parentc75ed37148b019358b0297171cf31b2577eeb9ae (diff)
parent6f604ab3995cb345aacf183a569589988aa3ad1f (diff)
downloadiced-e4ef29ef20724c3d1a4beff39ddfdaf6d45f9683.tar.gz
iced-e4ef29ef20724c3d1a4beff39ddfdaf6d45f9683.tar.bz2
iced-e4ef29ef20724c3d1a4beff39ddfdaf6d45f9683.zip
Merge pull request #1096 from pacmancoder/feat/wgpu-webgl
Experimental WebGL wgpu backend support
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) {}
-}