pub trait Interval: Send + 'static { // Required method fn tick(&mut self) -> Pin<Box<dyn Future<Output = ()> + Send + '_>>; }
A periodic timer that can be polled or awaited.
Wait for the next tick of the interval.