/// Create a new timer scheduled to fire at `time`.
Create a new timer scheduled to fire at `time`.
Create a new timer scheduled to fire at ` time ` .
pub fn new<WT>(time: WT) -> Self
    where
        WT: WakeupTime,
    {
        let waker_and_bool = Arc::new((AtomicWaker::new(), AtomicBool::new(false)));
        EHandle::local().register_timer(time.into_time(), &waker_and_bool);
        Timer { waker_and_bool }
    }
pub fn new < WT > ( time : WT ) -> Self where WT : WakeupTime , { let waker_and_bool = Arc :: new ( ( AtomicWaker :: new ( ) , AtomicBool :: new ( false ) ) ) ; EHandle :: local ( ) . register_timer ( time . into_time ( ) , & waker_and_bool ) ; Timer { waker_and_bool } }
Create a new timer scheduled to fire at `time`.
Create a new timer scheduled to fire at ` time ` .
time
WT