sleep

Function sleep 

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

Returns a future that will complete after the given duration.