[][src]Trait kompact::prelude::CanCancelTimers

pub trait CanCancelTimers {
    fn cancel_timer(&self, handle: ScheduledTimer);
}

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.

Loading content...

Implementors

impl CanCancelTimers for ContextSystemHandle[src]

impl<F> CanCancelTimers for F where
    F: TimerRefFactory
[src]

Loading content...