pub fn yield_now() -> YieldNow ⓘExpand description
Yield control from inside a task.
The task is rescheduled into the ready queue and resumes at a seeded-random position among the runnable tasks (there is no “back of the queue” under randomized scheduling).