diff options
Diffstat (limited to 'tokio/src/sync/oneshot.rs')
-rw-r--r-- | tokio/src/sync/oneshot.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tokio/src/sync/oneshot.rs b/tokio/src/sync/oneshot.rs index 5bbea381..aadb4996 100644 --- a/tokio/src/sync/oneshot.rs +++ b/tokio/src/sync/oneshot.rs @@ -237,7 +237,7 @@ impl<T> Sender<T> { Pending } - /// Wait for the associated [`Receiver`] handle to close. + /// Waits for the associated [`Receiver`] handle to close. /// /// A [`Receiver`] is closed by either calling [`close`] explicitly or the /// [`Receiver`] value is dropped. @@ -354,7 +354,7 @@ impl<T> Drop for Sender<T> { } impl<T> Receiver<T> { - /// Prevent the associated [`Sender`] handle from sending a value. + /// Prevents the associated [`Sender`] handle from sending a value. /// /// Any `send` operation which happens after calling `close` is guaranteed /// to fail. After calling `close`, `Receiver::poll`] should be called to @@ -610,7 +610,7 @@ impl<T> Inner<T> { } } - /// Consume the value. This function does not check `state`. + /// Consumes the value. This function does not check `state`. unsafe fn consume_value(&self) -> Option<T> { self.value.with_mut(|ptr| (*ptr).take()) } |