pub fn sleep(duration: Duration) -> Sleep ⓘ
Waits duration on the current Ui’s clock.
duration
Ui
Outside a Ui: call it from a mounted view or a task, or use Ui::sleep.
Ui::sleep