summaryrefslogtreecommitdiffstats
path: root/futures/src/executor
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 /futures/src/executor
parent1a31aefab401712e44cd613fc1337ab90579d926 (diff)
downloadiced-67f878b8906a7ad2bd708e7c2bc4aa9f1d232d0e.tar.gz
iced-67f878b8906a7ad2bd708e7c2bc4aa9f1d232d0e.tar.bz2
iced-67f878b8906a7ad2bd708e7c2bc4aa9f1d232d0e.zip
Remove support for old `tokio` crate
Diffstat (limited to 'futures/src/executor')
-rw-r--r--futures/src/executor/tokio_old.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/futures/src/executor/tokio_old.rs b/futures/src/executor/tokio_old.rs
deleted file mode 100644
index d64729fa..00000000
--- a/futures/src/executor/tokio_old.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-use crate::Executor;
-
-use futures::Future;
-
-/// An old `tokio` runtime.
-#[cfg_attr(docsrs, doc(cfg(feature = "tokio_old")))]
-pub type TokioOld = tokio_old::runtime::Runtime;
-
-impl Executor for TokioOld {
- fn new() -> Result<Self, futures::io::Error> {
- tokio_old::runtime::Runtime::new()
- }
-
- fn spawn(&self, future: impl Future<Output = ()> + Send + 'static) {
- let _ = tokio_old::runtime::Runtime::spawn(self, future);
- }
-
- fn enter<R>(&self, f: impl FnOnce() -> R) -> R {
- tokio_old::runtime::Runtime::enter(self, f)
- }
-}