macro_rules! timer_interval {
($interval:expr, $func:path $(, $($args:tt)*)? ) => { ... };
}Expand description
timer_interval Schedule a repeating timer with an auto-generate label.
§Examples
timer_interval!(Duration::from_secs(60), heartbeat);timer_interval!(Duration::from_secs(10), tick, state.clone());