mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
sync: fix unclosed code block in example (#6056)
This commit is contained in:
parent
6b010ac80f
commit
f306bd02c3
@ -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())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user