Skip to main content

yield_now

Function yield_now 

Source
pub fn yield_now()
Expand description

Voluntarily give up the CPU: request an immediate reschedule opportunity, same as a mutex unlock waking a higher-priority waiter. Safe to call from task or ISR context.