/// Yield the thread.
///
/// This enables concurrent algorithms that require other threads to make
/// progress.
Yield the thread.
This enables concurrent algorithms that require other threads to make
progress.
Yield the thread . This enables concurrent algorithms that require other threads to make progress .
pub fn yield_now() {
    let switch = execution(|execution| {
        execution.threads.active_mut().set_yield();
        execution.threads.active_mut().operation = None;
        execution.schedule()
    });
    if switch {
        Scheduler::switch();
    }
}
pub fn yield_now ( ) { let switch = execution ( | execution | { execution . threads . active_mut ( ) . set_yield ( ) ; execution . threads . active_mut ( ) . operation = None ; execution . schedule ( ) } ) ; if switch { Scheduler :: switch ( ) ; } }
Yield the thread.
Yield the thread .