mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-24 00:00:11 +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.
|
||||
///
|
||||
/// 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.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user