Function std::thread::yield_now [] [src]

pub fn yield_now()

Cooperatively gives up a timeslice to the OS scheduler.