diff options
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); - } -} |