summaryrefslogtreecommitdiffstats
path: root/src/executor.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-12 20:03:18 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-12 20:03:18 +0700
commit67f878b8906a7ad2bd708e7c2bc4aa9f1d232d0e (patch)
tree230b0d70d4c0e11591f493beaec8eac77d59cf7c /src/executor.rs
parent1a31aefab401712e44cd613fc1337ab90579d926 (diff)
downloadiced-67f878b8906a7ad2bd708e7c2bc4aa9f1d232d0e.tar.gz
iced-67f878b8906a7ad2bd708e7c2bc4aa9f1d232d0e.tar.bz2
iced-67f878b8906a7ad2bd708e7c2bc4aa9f1d232d0e.zip
Remove support for old `tokio` crate
Diffstat (limited to 'src/executor.rs')
-rw-r--r--src/executor.rs17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/executor.rs b/src/executor.rs
index 9f3656b1..c7166c68 100644
--- a/src/executor.rs
+++ b/src/executor.rs
@@ -7,30 +7,19 @@ pub use platform::Default;
mod platform {
use iced_futures::{executor, futures};
- #[cfg(feature = "tokio_old")]
- type Executor = executor::TokioOld;
-
- #[cfg(all(feature = "tokio", not(feature = "tokio_old")))]
+ #[cfg(feature = "tokio")]
type Executor = executor::Tokio;
- #[cfg(all(
- feature = "async-std",
- not(any(feature = "tokio_old", feature = "tokio")),
- ))]
+ #[cfg(all(feature = "async-std", not(feature = "tokio"),))]
type Executor = executor::AsyncStd;
#[cfg(all(
feature = "smol",
- not(any(
- feature = "tokio_old",
- feature = "tokio",
- feature = "async-std"
- )),
+ not(any(feature = "tokio", feature = "async-std")),
))]
type Executor = executor::Smol;
#[cfg(not(any(
- feature = "tokio_old",
feature = "tokio",
feature = "async-std",
feature = "smol",