mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
Document 'async fn' notation for boardcast::Receiver::recv
This commit is contained in:
@@ -1215,6 +1215,12 @@ impl<T: Clone> Receiver<T> {
|
|||||||
}
|
}
|
||||||
/// Receives the next value for this receiver.
|
/// Receives the next value for this receiver.
|
||||||
///
|
///
|
||||||
|
/// Equivalent to:
|
||||||
|
///
|
||||||
|
/// ```ignore
|
||||||
|
/// async fn recv(&self) -> Result<T, RecvError>;
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
/// Each [`Receiver`] handle will receive a clone of all values sent
|
/// Each [`Receiver`] handle will receive a clone of all values sent
|
||||||
/// **after** it has subscribed.
|
/// **after** it has subscribed.
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user