diff options
| author | 2022-01-31 17:01:19 +0700 | |
|---|---|---|
| committer | 2022-01-31 17:01:19 +0700 | |
| commit | e4ef29ef20724c3d1a4beff39ddfdaf6d45f9683 (patch) | |
| tree | 6e0c9c38366c9d70204c80fc66bd8e8a7652cf52 /futures/src/executor/thread_pool.rs | |
| parent | c75ed37148b019358b0297171cf31b2577eeb9ae (diff) | |
| parent | 6f604ab3995cb345aacf183a569589988aa3ad1f (diff) | |
| download | iced-e4ef29ef20724c3d1a4beff39ddfdaf6d45f9683.tar.gz iced-e4ef29ef20724c3d1a4beff39ddfdaf6d45f9683.tar.bz2 iced-e4ef29ef20724c3d1a4beff39ddfdaf6d45f9683.zip | |
Merge pull request #1096 from pacmancoder/feat/wgpu-webgl
Experimental WebGL wgpu backend support
Diffstat (limited to 'futures/src/executor/thread_pool.rs')
| -rw-r--r-- | futures/src/executor/thread_pool.rs | 17 |
1 files changed, 0 insertions, 17 deletions
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<Self, futures::io::Error> { - futures::executor::ThreadPool::new() - } - - fn spawn(&self, future: impl Future<Output = ()> + Send + 'static) { - self.spawn_ok(future); - } -} |
