Skip to main content

sleep

Function sleep 

Source
pub async fn sleep(duration: Duration) -> Result<(), TimerError>
Expand description

Wait for duration on the native timer thread; never fails.