Skip to main content

workflow_handler

Function workflow_handler 

Source
pub fn workflow_handler<S, F, Fut, T, R>(
    store: S,
    handler: F,
) -> impl Fn(QueueMessage) -> Pin<Box<dyn Future<Output = Result<()>> + Send>> + Send + Sync + Clone + 'static
where S: Store + Clone + 'static, F: Fn(Run, T) -> Fut + Send + Sync + Clone + 'static, Fut: Future<Output = Result<R>> + Send, T: DeserializeOwned + Send + 'static, R: Serialize + Send + 'static,
Expand description

Build a queue handler that runs a workflow with typed input.