Trait delay_timer::prelude::DelayTaskHandler[][src]

pub trait DelayTaskHandler: Send + Sync {
    fn quit(self: Box<Self>) -> Result<()>;
}
Expand description

You can implement this trait for your type T, and then you can define the function that returns the Box<T> as Box<dyn DelayTaskHandler> closure, which can be wrapped by the TaskBuilder and then thrown into the time wheel for constant rotation.

Required methods

Stopping a running task instance.

Implementations on Foreign Types

Implementors