Skip to main content

OrchestratorFn

Type Alias OrchestratorFn 

Source
pub type OrchestratorFn = Arc<dyn Fn(OrchestrationContext) -> Pin<Box<dyn Future<Output = OrchestratorResult> + Send>> + Send + Sync>;
Expand description

Type alias for boxed orchestrator functions.

Orchestrator functions are async functions that take an OrchestrationContext and return an optional JSON-serialised result string.

Aliased Typeยง

pub struct OrchestratorFn { /* private fields */ }