mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +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);
|
/// let _ = tx.send(10);
|
||||||
/// sync_code.join().unwrap();
|
/// sync_code.join().unwrap();
|
||||||
/// }
|
/// }
|
||||||
|
/// ```
|
||||||
pub fn blocking_recv(&mut self) -> Result<T, RecvError> {
|
pub fn blocking_recv(&mut self) -> Result<T, RecvError> {
|
||||||
crate::future::block_on(self.recv())
|
crate::future::block_on(self.recv())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user