Function std::old_io::timer::sleepUnstable [-] [+] [src]

pub fn sleep(duration: Duration)

Sleep the current task for the specified duration.

When provided a zero or negative duration, the function will return immediately.