Skip to main content

yield_now

Function yield_now 

Source
pub fn yield_now()
Expand description

Cooperatively gives up a timeslice to the Shuttle scheduler.

Some Shuttle schedulers use this as a hint to deprioritize the current thread in order for other threads to make progress (e.g., in a spin loop).