Trait delay_timer::prelude::DelayTaskHandler [−][src]
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
Implementations on Foreign Types
impl<T: Send + Sync + Debug + 'static> DelayTaskHandler for JoinHandle<T>This is supported on crate feature tokio-support only.
impl<T: Send + Sync + Debug + 'static> DelayTaskHandler for JoinHandle<T>This is supported on crate feature
tokio-support only.