pub fn set_timer_interval(
    interval: Duration,
    func: impl FnMut() + 'static
) -> TimerId
Expand description

Sets func to be executed every interval. Panics if interval + time() is more than u64::MAX nanoseconds.

To cancel the interval timer, pass the returned TimerId to clear_timer.

Note that timers are not persisted across canister upgrades.