Skip to main content

sleep

Function sleep 

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

Waits duration. Nothing starts until the task runs it, so it’s safe to build in update.