Creates new Interval
that yields with interval of period
with the first tick completing at start
.
An interval will tick indefinitely. At any time, the Interval
value can be dropped. This cancels the interval.
Vm Panics
This function panics if period
is zero.
Examples
use ;
let start = now + from_millis;
let interval = interval_at;
interval.tick .await; // ticks after 50ms
interval.tick .await; // ticks after 10ms
interval.tick .await; // ticks after 10ms
println!;