mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-16 02:39:55 +00:00
channel doc: Fix misleading reference to None return on Receiver
Signed-off-by: Jonathas-Conceicao <jonathas.conceicao@ossystems.com.br>
This commit is contained in:
parent
c82b1efb69
commit
cd7fb9dec2
1 changed files with 3 additions and 3 deletions
|
@ -22,8 +22,8 @@ use crate::sync::WakerSet;
|
||||||
/// This channel has a buffer that can hold at most `cap` messages at a time.
|
/// This channel has a buffer that can hold at most `cap` messages at a time.
|
||||||
///
|
///
|
||||||
/// Senders and receivers can be cloned. When all senders associated with a channel get dropped, it
|
/// Senders and receivers can be cloned. When all senders associated with a channel get dropped, it
|
||||||
/// becomes closed. Receive operations on a closed and empty channel return `None` instead of
|
/// becomes closed. Receive operations on a closed and empty channel return [RecvError] instead of
|
||||||
/// trying to await a message.
|
/// trying to await a message when using [Receiver::recv] or `None` when used as a [Stream].
|
||||||
///
|
///
|
||||||
/// # Panics
|
/// # Panics
|
||||||
///
|
///
|
||||||
|
@ -376,7 +376,7 @@ impl<T> Receiver<T> {
|
||||||
///
|
///
|
||||||
/// If the channel is empty and still has senders, this method
|
/// If the channel is empty and still has senders, this method
|
||||||
/// will wait until a message is sent into it. Once all senders
|
/// will wait until a message is sent into it. Once all senders
|
||||||
/// have been dropped it will return `None`.
|
/// have been dropped it will return [RecvError].
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue