mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-17 00:00:11 +02:00
sync: fix unclosed code block in example (#6056)
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user