Skip to main content

TaskHandler

Type Alias TaskHandler 

Source
pub type TaskHandler = Arc<dyn Fn(&str, &Value) -> Value + Send + Sync>;
Expand description

Task handler function type.

Given a skill name and input, returns the output value. Used to plug in actual task execution logic.

Aliased Type§

pub struct TaskHandler { /* private fields */ }