Function std::thread::yield_now1.0.0 [] [src]

pub fn yield_now()

Cooperatively gives up a timeslice to the OS scheduler.

Examples

use std::thread;

thread::yield_now();Run