Function sleep

Source
pub fn sleep(duration: Duration) -> Sleep 
Expand description

Puts the current task to sleep for at least the specified amount of time.

The function is a shorthand for Sleep::new using the global logger for debug output.