Function tk_easyloop::interval
[−]
[src]
pub fn interval(dur: Duration) -> Interval
Create an interval tied to the current loop
This is a shortcut for:
Interval::new(instant, &handle()).unwrap()
Panics
When no loop is running (handle()
panics)
(Note: while we technically unwrap()
constructor it never fails in
current tokio)