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/slice.rs | |
parent | a70f7203a46d471345128832987017612d8e4585 (diff) |
docs: use third form in API docs (#2027)
Diffstat (limited to 'tokio/src/runtime/thread_pool/slice.rs')
-rw-r--r-- | tokio/src/runtime/thread_pool/slice.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tokio/src/runtime/thread_pool/slice.rs b/tokio/src/runtime/thread_pool/slice.rs index 05380329..9a5fd334 100644 --- a/tokio/src/runtime/thread_pool/slice.rs +++ b/tokio/src/runtime/thread_pool/slice.rs @@ -30,7 +30,7 @@ unsafe impl Send for Set {} unsafe impl Sync for Set {} impl Set { - /// Create a new worker set using the provided queues. + /// Creates a new worker set using the provided queues. pub(crate) fn new(parkers: &[Parker]) -> Self { assert!(!parkers.is_empty()); @@ -115,7 +115,7 @@ impl Set { } } - /// Signal the pool is closed + /// Signals the pool is closed /// /// Returns `true` if the transition to closed is successful. `false` /// indicates the pool was already closed. @@ -156,7 +156,7 @@ impl Set { &self.idle } - /// Wait for all locks on the injection queue to drop. + /// Waits for all locks on the injection queue to drop. /// /// This is done by locking w/o doing anything. pub(super) fn wait_for_unlocked(&self) { |