/// Marks the current thread as blocked
Marks the current thread as blocked
Marks the current thread as blocked
pub fn park() {
    execution(|execution| {
        execution.threads.active_mut().set_blocked();
        execution.threads.active_mut().operation = None;
        execution.schedule()
    });
    Scheduler::switch();
}
pub fn park ( ) { execution ( | execution | { execution . threads . active_mut ( ) . set_blocked ( ) ; execution . threads . active_mut ( ) . operation = None ; execution . schedule ( ) } ) ; Scheduler :: switch ( ) ; }
Marks the current thread as blocked
Marks the current thread as blocked