Function: executeLoop()
ts
function executeLoop<TIn, TOut, THandle>(
node,
input,
ctx
): Promise<TOut>;Defined in: runtime/loop/execute-loop.ts:23
Executes a passive LoopNode across .act() -> .evaluate() iterations up to maxIterations (SPEC.md §3.8).
Sequences state initialization, iteration execution (runLoopIterationsUntilAccepted), output validation, and childOutcomeSink projection (projectLoopChildOutcomeSink) at one uniform level of abstraction (Rule 3.1).
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
TIn | unknown | Validated loop input payload type. |
TOut | unknown | Validated loop output payload type. |
THandle | unknown | Runtime handle type of the active isolation scope. |
Parameters
| Parameter | Type | Description |
|---|---|---|
node | LoopNode<TIn, TOut, THandle> | Passive LoopNode AST definition. |
input | TIn | Raw or pre-mapped loop input payload. |
ctx | StepExecutionContext<THandle> | Active step execution context. |
Returns
Promise<TOut>
Schema-validated loop output payload from returnOutputFromStepId.