From d95889aca9557dcefae37c63eb9b7dbc0d3cd7f2 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 1 Feb 2022 11:40:58 +0700 Subject: Fix `default` backend in `iced_futures` Fixes #1228. --- futures/src/backend/native/thread_pool.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'futures/src/backend/native') diff --git a/futures/src/backend/native/thread_pool.rs b/futures/src/backend/native/thread_pool.rs index 6e791533..da5d4b9b 100644 --- a/futures/src/backend/native/thread_pool.rs +++ b/futures/src/backend/native/thread_pool.rs @@ -3,9 +3,9 @@ use futures::Future; /// A thread pool executor for futures. #[cfg_attr(docsrs, doc(cfg(feature = "thread-pool")))] -pub type ThreadPool = futures::executor::ThreadPool; +pub type Executor = futures::executor::ThreadPool; -impl crate::Executor for futures::executor::ThreadPool { +impl crate::Executor for Executor { fn new() -> Result { futures::executor::ThreadPool::new() } @@ -14,3 +14,7 @@ impl crate::Executor for futures::executor::ThreadPool { self.spawn_ok(future); } } + +pub mod time { + //! Listen and react to time. +} -- cgit