sleep

Function sleep 

Source
pub async fn sleep(duration: Duration)
Expand description

Sleep for a specified duration. This is non-blocking.