pub async fn sleep_for(duration: Duration)
Expand description

Returns duration time from now.

Panics

Panics if start_timer_thread() has not been called. If you need to handle this error, use SleepFuture::new.