pub fn timeout(&mut self, timeout: Duration, callback: Box<TimerCB<'a>>) {
        let tok = self.inner.timeouts.insert((callback, None)).map_err(|_|()).unwrap();
        let handle = self.event_loop.timeout(tok, timeout).unwrap();
        self.inner.timeouts.get_mut(tok).unwrap().1 = Some(handle);
    }
/// Set a timeout to be executed by the event loop after duration
/// Minimum expected resolution is the tick duration of the event loop
/// poller, but it could be shorted depending on how many events are
/// occurring
Set a timeout to be executed by the event loop after duration
Minimum expected resolution is the tick duration of the event loop
poller, but it could be shorted depending on how many events are
occurring
Set a timeout to be executed by the event loop after duration Minimum expected resolution is the tick duration of the event loop poller but it could be shorted depending on how many events are occurring
pub fn timeout(&mut self, timeout: Duration, callback: Box<TimerCB<'a>>) {
        let tok = self.inner.timeouts.insert((callback, None)).map_err(|_|()).unwrap();
        let handle = self.event_loop.timeout(tok, timeout).unwrap();
        self.inner.timeouts.get_mut(tok).unwrap().1 = Some(handle);
    }
pub fn timeout ( & mut self , timeout : Duration , callback : Box < TimerCB < ' a > > ) { let tok = self . inner . timeouts . insert ( ( callback , None ) ) . map_err ( | _ | ( ) ) . unwrap ( ) ; let handle = self . event_loop . timeout ( tok , timeout ) . unwrap ( ) ; self . inner . timeouts . get_mut ( tok ) . unwrap ( ) . 1 = Some ( handle ) ; }
Set a timeout to be executed by the event loop after duration
Minimum expected resolution is the tick duration of the event loop
poller, but it could be shorted depending on how many events are
occurring
Set a timeout to be executed by the event loop after duration Minimum expected resolution is the tick duration of the event loop poller but it could be shorted depending on how many events are occurring
&mut self
timeout
Duration
callback
Box<TimerCB<'a>>
&mut self
timeout
Duration
callback
Box<TimerCB<'a>>