Function interval_at
fn interval_at(start: Instant, period: Duration) -> Interval
Creates new Interval that yields with interval of period with the
first tick completing at start. The default MissedTickBehavior is
Burst, but this can be configured
by calling set_missed_tick_behavior.
An interval will tick indefinitely. At any time, the Interval value can
be dropped. This cancels the interval.
Panics
This function panics if period is zero.
Examples
use ;
async