diff options
author | Marc-Antoine Perennou <Marc-Antoine@Perennou.com> | 2020-11-05 13:00:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-05 13:00:13 +0100 |
commit | 0b3918bce956567cccc617213a56c339a5a21d6f (patch) | |
tree | fbbb4f81f135282e9f4f9b39c0ad79200cb05e32 /tokio/src/runtime/thread_pool/mod.rs | |
parent | e309da0beeb48a0c2ecd0f15eb600f871ec98e19 (diff) |
rt: bring back a public Handle type (#3076)
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Co-authored-by: Alice Ryhl <alice@ryhl.io>
Co-authored-by: Carl Lerche <me@carllerche.com>
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 |