Skip to main content

sleep

Function sleep 

Source
pub fn sleep(ms: u32) -> Sleep ⓘ
Expand description

Resolve after (at least) ms milliseconds, on the UI thread: the portable delay for day::task flows (docs/async.md). Rides Platform::post_delayed, so it works on single-threaded hosts (web) where std::thread::sleep + Setter cannot.