diff options
Diffstat (limited to 'tokio/src/runtime/thread_pool/mod.rs')
-rw-r--r-- | tokio/src/runtime/thread_pool/mod.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tokio/src/runtime/thread_pool/mod.rs b/tokio/src/runtime/thread_pool/mod.rs index e39695a9..47f8ee34 100644 --- a/tokio/src/runtime/thread_pool/mod.rs +++ b/tokio/src/runtime/thread_pool/mod.rs @@ -59,15 +59,6 @@ impl ThreadPool { &self.spawner } - /// Spawns a task - pub(crate) fn spawn<F>(&self, future: F) -> JoinHandle<F::Output> - where - F: Future + Send + 'static, - F::Output: Send + 'static, - { - self.spawner.spawn(future) - } - /// Blocks the current thread waiting for the future to complete. /// /// The future will execute on the current thread, but all spawned tasks |