diff options
author | Haibo Huang <hhb@google.com> | 2020-11-18 15:38:25 -0800 |
---|---|---|
committer | Haibo Huang <hhb@google.com> | 2020-11-18 15:38:25 -0800 |
commit | 142a0689ca6b6326a51c74aa475a460e035438cd (patch) | |
tree | 1cce8a9def09a004d9b03d019713eace7571659e /src/runtime/thread_pool | |
parent | d45ebac89067bf60e5226c2a3378bf47186fd82f (diff) | |
download | tokio-142a0689ca6b6326a51c74aa475a460e035438cd.tar.gz |
Upgrade rust/crates/tokio to 0.3.4
Test: make
Change-Id: I6b2c5610921e4208538c51c23566e0f864fe0ad4
Diffstat (limited to 'src/runtime/thread_pool')
-rw-r--r-- | src/runtime/thread_pool/mod.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/runtime/thread_pool/mod.rs b/src/runtime/thread_pool/mod.rs index e39695a..47f8ee3 100644 --- a/src/runtime/thread_pool/mod.rs +++ b/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 |