diff options
author | Oleg Nosov <olegnosov1@gmail.com> | 2020-01-24 20:31:13 +0300 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2020-01-24 09:31:13 -0800 |
commit | f9ddb93604a830d106475bd4c4cae436fafcc0da (patch) | |
tree | 6f200680e68b290794ef0512dcb031ef6d81c5ea /tokio/src/runtime/thread_pool/mod.rs | |
parent | a70f7203a46d471345128832987017612d8e4585 (diff) |
docs: use third form in API docs (#2027)
Diffstat (limited to 'tokio/src/runtime/thread_pool/mod.rs')
-rw-r--r-- | tokio/src/runtime/thread_pool/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tokio/src/runtime/thread_pool/mod.rs b/tokio/src/runtime/thread_pool/mod.rs index fd38c013..a5260356 100644 --- a/tokio/src/runtime/thread_pool/mod.rs +++ b/tokio/src/runtime/thread_pool/mod.rs @@ -72,7 +72,7 @@ impl ThreadPool { &self.spawner } - /// Spawn a task + /// Spawns a task pub(crate) fn spawn<F>(&self, future: F) -> JoinHandle<F::Output> where F: Future + Send + 'static, @@ -81,7 +81,7 @@ impl ThreadPool { self.spawner.spawn(future) } - /// Block the current thread waiting for the future to complete. + /// Blocks the current thread waiting for the future to complete. /// /// The future will execute on the current thread, but all spawned tasks /// will be executed on the thread pool. |