From 35760ac68f06e783e64e9048aff0fff6df1c09cf Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 19 Jan 2020 11:08:47 +0100 Subject: Make `thread-pool` optional in `iced_futures` --- futures/src/runtime/executor.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'futures/src') diff --git a/futures/src/runtime/executor.rs b/futures/src/runtime/executor.rs index 855aa105..eec5e231 100644 --- a/futures/src/runtime/executor.rs +++ b/futures/src/runtime/executor.rs @@ -8,6 +8,7 @@ pub trait Executor { } } +#[cfg(feature = "thread-pool")] impl Executor for futures::executor::ThreadPool { fn spawn(&self, future: impl Future + Send + 'static) { self.spawn_ok(future); -- cgit