From 167be45a7db7c1f60a79116766bdf38300429c6a Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 28 Jan 2022 18:24:07 +0700 Subject: Split `iced_futures` into different `backend` implementations --- futures/src/executor/thread_pool.rs | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 futures/src/executor/thread_pool.rs (limited to 'futures/src/executor/thread_pool.rs') diff --git a/futures/src/executor/thread_pool.rs b/futures/src/executor/thread_pool.rs deleted file mode 100644 index a6c6168e..00000000 --- a/futures/src/executor/thread_pool.rs +++ /dev/null @@ -1,17 +0,0 @@ -use crate::Executor; - -use futures::Future; - -/// A thread pool runtime for futures. -#[cfg_attr(docsrs, doc(cfg(feature = "thread-pool")))] -pub type ThreadPool = futures::executor::ThreadPool; - -impl Executor for futures::executor::ThreadPool { - fn new() -> Result { - futures::executor::ThreadPool::new() - } - - fn spawn(&self, future: impl Future + Send + 'static) { - self.spawn_ok(future); - } -} -- cgit