referrerpolicy=no-referrer-when-downgrade

wait_for_threads_with_timeout

Function wait_for_threads_with_timeout 

Source
pub fn wait_for_threads_with_timeout(
    cond: &Cond,
    dur: Duration,
) -> Option<WaitOutcome>
Expand description

Block the thread while it waits on the condvar or on a timeout. If the timeout is hit, returns None.