pub fn delay(duration: Duration) -> impl Future<Output = ()>Expand description
Resolves after duration. Compose’s delay.
The wait happens on a timer thread, so the UI thread does nothing while it lasts and the frame that resumes the future is asked for when it ends. In a browser, which has no threads here, the wait is counted on the frame clock instead.