Skip to content

Commit

Permalink
sync: fix unclosed code block in example (#6056)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiftoo authored Oct 6, 2023
1 parent 6b010ac commit f306bd0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tokio/src/sync/broadcast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1325,6 +1325,7 @@ impl<T: Clone> Receiver<T> {
/// let _ = tx.send(10);
/// sync_code.join().unwrap();
/// }
/// ```
pub fn blocking_recv(&mut self) -> Result<T, RecvError> {
crate::future::block_on(self.recv())
}
Expand Down

0 comments on commit f306bd0

Please sign in to comment.