summaryrefslogtreecommitdiffstats
path: root/futures/src/maybe.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-06-14 01:47:39 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-06-14 01:47:39 +0200
commita25b1af45690bdd8e1cbb20ee3a5b1c4342de455 (patch)
tree432044cf682dd73d1019a2f964749e78db178865 /futures/src/maybe.rs
parente6d0b3bda5042a1017a5944a5227c97e0ed6caf9 (diff)
downloadiced-a25b1af45690bdd8e1cbb20ee3a5b1c4342de455.tar.gz
iced-a25b1af45690bdd8e1cbb20ee3a5b1c4342de455.tar.bz2
iced-a25b1af45690bdd8e1cbb20ee3a5b1c4342de455.zip
Replace `Command` with a new `Task` API with chain support
Diffstat (limited to 'futures/src/maybe.rs')
-rw-r--r--futures/src/maybe.rs35
1 files changed, 0 insertions, 35 deletions
diff --git a/futures/src/maybe.rs b/futures/src/maybe.rs
deleted file mode 100644
index c6a507c1..00000000
--- a/futures/src/maybe.rs
+++ /dev/null
@@ -1,35 +0,0 @@
-#[cfg(not(target_arch = "wasm32"))]
-mod platform {
- /// An extension trait that enforces `Send` only on native platforms.
- ///
- /// Useful for writing cross-platform async code!
- pub trait MaybeSend: Send {}
-
- impl<T> MaybeSend for T where T: Send {}
-
- /// An extension trait that enforces `Sync` only on native platforms.
- ///
- /// Useful for writing cross-platform async code!
- pub trait MaybeSync: Sync {}
-
- impl<T> MaybeSync for T where T: Sync {}
-}
-
-#[cfg(target_arch = "wasm32")]
-mod platform {
- /// An extension trait that enforces `Send` only on native platforms.
- ///
- /// Useful for writing cross-platform async code!
- pub trait MaybeSend {}
-
- impl<T> MaybeSend for T {}
-
- /// An extension trait that enforces `Sync` only on native platforms.
- ///
- /// Useful for writing cross-platform async code!
- pub trait MaybeSync {}
-
- impl<T> MaybeSync for T {}
-}
-
-pub use platform::{MaybeSend, MaybeSync};