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.
pub fn sleep(duration: Duration) -> Sleep ⓘ
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.