Skip to main content

delay

Function delay 

Source
pub fn delay(duration: Duration) -> Delay 
Expand description

Resolves after duration has elapsed.

The wait is served by the framework’s timer, which posts the wake-up onto the runtime’s UI queue. Nothing spins and no frames are requested while a delay is pending, so a one-minute timer costs nothing for a minute.