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 by default, see
Builder::timer_resolution, and are
not suitable for high-resolution timing. A zero duration still waits for at
least one timer tick.