mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
sync: update oneshot::Receiver::close doc link (#2630)
Co-authored-by: Alice Ryhl <[email protected]>
This commit is contained in:
@@ -366,7 +366,7 @@ impl<T> Receiver<T> {
|
|||||||
/// Prevents 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
|
/// Any `send` operation which happens after calling `close` is guaranteed
|
||||||
/// to fail. After calling `close`, `Receiver::poll`] should be called to
|
/// to fail. After calling `close`, [`try_recv`] should be called to
|
||||||
/// receive a value if one was sent **before** the call to `close`
|
/// receive a value if one was sent **before** the call to `close`
|
||||||
/// completed.
|
/// completed.
|
||||||
///
|
///
|
||||||
@@ -374,6 +374,7 @@ impl<T> Receiver<T> {
|
|||||||
/// value will not be sent into the channel and never received.
|
/// value will not be sent into the channel and never received.
|
||||||
///
|
///
|
||||||
/// [`Sender`]: Sender
|
/// [`Sender`]: Sender
|
||||||
|
/// [`try_recv`]: Receiver::try_recv
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user