Trait atex::ITaskExecutor
source · pub trait ITaskExecutor: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn execute(
&self,
ctrl: Box<dyn ITaskController>,
task: Task
) -> Pin<Box<dyn Future<Output = TaskStatus> + Send + 'static>>;
// Provided methods
fn periodic_interval(&self) -> Option<u64> { ... }
fn lock_key(&self, payload: &str) -> String { ... }
}