Skip to main content

current_for

Function current_for 

Source
pub fn current_for(
    task_context: Option<&TaskContextHandle>,
) -> Option<Rc<WorkflowCtx>>
Expand description

The live workflow context for task_context, if a run is in progress on that task. Reads the task-local extension first; the WORKFLOW thread-local is consulted ONLY as the host-adapter fallback outside a runtime quantum.