Skip to content

Function: createChildInterruptHandlerBuilder() ​

ts
function createChildInterruptHandlerBuilder<TPayload>(interrupt): ChildInterruptHandlerBuilder<TPayload>;

Defined in: builders/create-child-interrupt-handler-builder.ts:19

Creates a fluent ChildInterruptHandlerBuilder for agent.onChildInterrupt(interrupt, $ci => ...).

Extracts the target InterruptNode and initializes an immutable child interrupt handler builder with no partition sibling pauses configured.

Type Parameters ​

Type ParameterDefault typeDescription
TPayloadunknownValidated interrupt payload type raised by the forked child.

Parameters ​

ParameterTypeDescription
interruptMaybeBuilder<InterruptNode<TPayload>>Interrupt definition caught from forked children.

Returns ​

ChildInterruptHandlerBuilder<TPayload>

Frozen child interrupt handler builder.

Released under the MIT License.