pub fn interval(runtime: Arc<dyn Runtime>, period: Duration) -> Interval
Ticks every period, the first at once, on runtime’s clock.
period
runtime
Panics with interval period must be non-zero when period is zero.
interval period must be non-zero