//! Workflow handler types.
//!
//! The worker's `ExecutionRuntime` stores registered handlers and runs them. Polling and
//! communication with the server go through the worker host.
use crateResult;
use crateWorkflowContext;
use Future;
use Pin;
use Arc;
/// The signature of a workflow function: an async function that takes a
/// [`WorkflowContext`] and returns a result.
///
/// # Example
///
/// ```rust
/// use orcher_sdk::prelude::*;
/// use orcher_sdk::workflow::handler::UserWorkflowFn;
/// use std::sync::Arc;
///
/// async fn my_workflow(ctx: WorkflowContext) -> Result<String> {
/// let charge_id: String = ctx.execute_task("charge_card", 4_200).await?;
/// Ok(charge_id)
/// }
///
/// let handler: UserWorkflowFn<String> = Arc::new(|ctx| Box::pin(my_workflow(ctx)));
/// ```
pub type UserWorkflowFn<T> =
;