pub async fn sleep(duration: Duration)
Expand description

Returns a future that will sleep for the given duration.