Skip to main content

TaskHandlerFn

Type Alias TaskHandlerFn 

Source
pub type TaskHandlerFn = Arc<dyn Fn(WorkerContext) -> Pin<Box<dyn Future<Output = TaskHandlerOutcome> + Send>> + Sync + Send>;
Expand description

Type-erased function used by workers to run a task from a WorkerContext.

Aliased Typeยง

pub struct TaskHandlerFn { /* private fields */ }