/// Returns whether a 'timer' on another thread has finished
/// Use to check for modkey and ctrl presses, as well as anything else...
/// Might be overcomplicated but this made sense earlier for whatever reason.
Returns whether a 'timer' on another thread has finished
Use to check for modkey and ctrl presses, as well as anything else
Might be overcomplicated but this made sense earlier for whatever reason.
Returns whether a ' timer ' on another thread has finished Use to check for modkey and ctrl presses as well as anything else Might be overcomplicated but this made sense earlier for whatever reason .
pub fn timer_done(rx: &Receiver<Instant>, _timeout: Duration) -> bool {
    match rx.try_recv() {
        Ok(timer) => timer.elapsed() >= _timeout,
        Err(_) => false,
    }
}
pub fn timer_done ( rx : & Receiver < Instant > , _timeout : Duration ) -> bool { match rx . try_recv ( ) { Ok ( timer ) => timer . elapsed ( ) >= _timeout , Err ( _ ) => false , } }
Returns whether a 'timer' on another thread has finished
Use to check for modkey and ctrl presses, as well as anything else...
Might be overcomplicated but this made sense earlier for whatever reason.
Returns whether a ' timer ' on another thread has finished Use to check for modkey and ctrl presses as well as anything else ... Might be overcomplicated but this made sense earlier for whatever reason .
rx
&Receiver<Instant>
_timeout
Duration