Waits until duration has elapsed.
use time::Duration; let duration = Duration::from_secs(10); time::sleep(duration).await; println!("Surprise!");