Skip to main content

hold

Function hold 

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

Holds the calling thread (a test’s hook) until the test lets it go, a message on rx, or drops the sender (it is done with the thread).

§Panics

Past DEADLOCK_GUARD with neither: the test is waiting on this thread.