iced_futures::backend::native::async_std::time

Function every

Source
pub fn every(duration: Duration) -> Subscription<Instant>
Available on non-WebAssembly and crate feature async-std only.
Expand description

Returns a Subscription that produces messages at a set interval.

The first message is produced after a duration, and then continues to produce more messages every duration after that.