mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
Document 'async fn' notation for boardcast::Receiver::recv
This commit is contained in:
parent
8bc21be4d3
commit
ba5f590acd
@ -1215,6 +1215,12 @@ impl<T: Clone> Receiver<T> {
|
||||
}
|
||||
/// 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
|
||||
/// **after** it has subscribed.
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user