pub fn sleep(duration: Duration) -> SleepNotable traits for Sleepimpl Future for Sleep    type Output = ();
Expand description

Waits until duration has elapsed.

An asynchronous analog to std::thread::sleep.