Function ntex::time::sleep[][src]

pub fn sleep<T: Into<Millis>>(dur: T) -> Sleep
Notable traits for Sleep
impl Future for Sleep type Output = ();
Expand description

Waits until duration has elapsed.

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.