[−][src]Trait kompact::prelude::CanCancelTimers
API for cancelling timers
While only components can schedule timers, cancelling timers can be done anywhere, where a TimerRef is available.
Required methods
fn cancel_timer(&self, handle: ScheduledTimer)
Cancel the timer indicated by the handle
This method is asynchronous, and calling it is no guarantee than an already scheduled timeout is not going to fire before it is actually cancelled.
However, calling this method will definitely prevent periodic timeouts from being rescheduled.
Implementors
impl CanCancelTimers for ContextSystemHandle
[src]
fn cancel_timer(&self, handle: ScheduledTimer)
[src]
impl<F> CanCancelTimers for F where
F: TimerRefFactory,
[src]
F: TimerRefFactory,