Skip to content

Dispatch

Namespace: E2E.Decision

public static class Dispatch

Upstream’s dispatch.ts.

Inheritance: object

View source

PerformAsync(StepExecutorContext, DecisionAction, CancellationToken)

Section titled “PerformAsync(StepExecutorContext, DecisionAction, CancellationToken)”
public static Task<string?> PerformAsync(StepExecutorContext ctx, DecisionAction action, CancellationToken cancellationToken = default)

Upstream’s perform. Performs one action through the runner’s grammar: the only place that touches ctx.actions. Resolves to a note for the model when the engine reports something worth telling it, nothing otherwise.

Parameters

Name Type Description
ctx StepExecutorContext
action DecisionAction
cancellationToken CancellationToken

Returns: Task<string>