pub fn timeout_cancellation_example() -> WorkflowExpand description
Creates a timeout and cancellation example workflow.
This function creates a workflow with timeout configuration and demonstrates tasks that respond to both timeout and cancellation signals.
§Returns
A workflow ready for execution with timeout support.
§Example
ⓘ
use forge_agent::workflow::examples::timeout_cancellation_example;
use forge_agent::workflow::executor::WorkflowExecutor;
let workflow = timeout_cancellation_example();
let mut executor = WorkflowExecutor::new(workflow)
.with_timeout(std::time::Duration::from_millis(100));
// ... execute with timeout