Skip to content

Interface: LaneSignalHandlerConfig<TIn, TStepIds, TPayload> ​

Defined in: ast/lane-node.ts:82

Live signal steering and step rewind handler configuration for a LaneNode.

Executes the Hierarchical Rewind Drain Barrier when signal correlates to an active run, reduces the run input via updateMapper, runs onRewind, and rewinds execution to rewindToStepId.

Type Parameters ​

Type ParameterDefault typeDescription
TInunknownValidated lane work item input type.
TStepIds extends stringstringUnion of literal step and branch IDs in the lane's flow.
TPayloadunknownSignal payload type.

Properties ​

PropertyModifierTypeDescriptionDefined in
__stepIdsBrand?readonlyBivariantCallback<[stepId: TStepIds], void>Phantom bivariant brand preserving TStepIds across copy-on-write state transitions.ast/lane-node.ts:96
onRewind?readonlyScopeRewindHookASTNode<unknown>Optional scope rewind hook executed during Step 4 of the Hierarchical Rewind Drain Barrier.ast/lane-node.ts:94
rewindToStepIdreadonlystringLiteral target step or branch ID in flow.nodes to rewind execution to.ast/lane-node.ts:92
signalreadonlySignalNode<TPayload>External SignalNode triggering this handler.ast/lane-node.ts:88
updateMapperreadonlyBivariantCallback<[current: TIn, payload: TPayload], TIn>Synchronous reducer updating the active run's input from (currentInput, signalPayload).ast/lane-node.ts:90

Released under the MIT License.