pub fn sleep(duration: Duration) -> Sleep ⓘ
Waits until duration has elapsed.
duration
An asynchronous analog to std::thread::sleep.
std::thread::sleep