pub fn interval<T>(period: T) -> Interval where T: Into<Millis>,
Creates new Interval that yields with interval of period.
Interval
period
An interval will tick indefinitely. At any time, the Interval value can be dropped. This cancels the interval.