Function sleep

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

Returns a future that will complete after the given duration.