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