From 67f878b8906a7ad2bd708e7c2bc4aa9f1d232d0e Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 12 Jan 2022 20:03:18 +0700 Subject: Remove support for old `tokio` crate --- futures/src/executor/tokio_old.rs | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 futures/src/executor/tokio_old.rs (limited to 'futures/src/executor') 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 { - tokio_old::runtime::Runtime::new() - } - - fn spawn(&self, future: impl Future + Send + 'static) { - let _ = tokio_old::runtime::Runtime::spawn(self, future); - } - - fn enter(&self, f: impl FnOnce() -> R) -> R { - tokio_old::runtime::Runtime::enter(self, f) - } -} -- cgit