Make thread-pool optional in iced_futures
This commit is contained in:
parent
b8b0d97525
commit
35760ac68f
3 changed files with 10 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue