pub fn sleep<T: Into<Millis>>(dur: T) -> SleepⓘNotable traits for Sleepimpl Future for Sleep type Output = ();
impl Future for Sleep type Output = ();
Waits until duration has elapsed.
duration
No work is performed while awaiting on the sleep future to complete. Sleep operates at 16 millisecond granularity and should not be used for tasks that require high-resolution timers.
Sleep