pub fn sched_yield() -> Result<()>
sched
Explicitly yield the processor to other threads.
Further reading