pub fn sleep<T>(dur: T) -> Sleep ⓘExpand description
Waits until dur has elapsed.
No work is performed while awaiting the returned Sleep. Timers have a
granularity of approximately 16 milliseconds and are not suitable for
high-resolution timing. A zero duration still waits for at least one timer
tick.