diff options
| author | 2020-01-19 11:08:47 +0100 | |
|---|---|---|
| committer | 2020-01-19 11:08:47 +0100 | |
| commit | 35760ac68f06e783e64e9048aff0fff6df1c09cf (patch) | |
| tree | 0ed42bd6c9417f7adb42f1dae62e17bfaab74319 /futures/src | |
| parent | b8b0d97525aaa2641d8493aa65e3108d70c1560a (diff) | |
| download | iced-35760ac68f06e783e64e9048aff0fff6df1c09cf.tar.gz iced-35760ac68f06e783e64e9048aff0fff6df1c09cf.tar.bz2 iced-35760ac68f06e783e64e9048aff0fff6df1c09cf.zip | |
Make `thread-pool` optional in `iced_futures`
Diffstat (limited to 'futures/src')
| -rw-r--r-- | futures/src/runtime/executor.rs | 1 | 
1 files changed, 1 insertions, 0 deletions
| 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<Output = ()> + Send + 'static) {          self.spawn_ok(future); | 
