[−][src]Function greenie::thread_sleep
pub fn thread_sleep(duration: Duration)
Puts the current thread to sleep for at least the specified amount of time.
The thread may sleep longer than the duration specified due to scheduling specifics or platform-dependent functionality. It will never sleep less.