Skip to main content

recv

Function recv 

Source
pub fn recv<T>(rx: &Receiver<T>, what: &str) -> T
Expand description

rx’s next message, waited for at most DEADLOCK_GUARD; what names what the test waits for, and what a lock held where it must not be would deadlock.

§Panics

Past the guard with no message, or when every sender is gone without sending (the thread that held one panicked, and its own message says why).