Skip to main content

sleep

Function sleep 

Source
pub fn sleep(duration: Duration) -> Sleep ⓘ
Expand description

Waits duration on the current Ui’s clock.

§Panics

Outside a Ui: call it from a mounted view or a task, or use Ui::sleep.