Skip to main content

interval

Function interval 

Source
pub fn interval(runtime: Arc<dyn Runtime>, period: Duration) -> Interval
Expand description

Ticks every period, the first at once, on runtime’s clock.

§Panics

Panics with interval period must be non-zero when period is zero.