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 Parameter | Default type | Description |
|---|---|---|
TPayload | unknown | Validated interrupt payload type raised by the forked child. |
Parameters
| Parameter | Type | Description |
|---|---|---|
interrupt | MaybeBuilder<InterruptNode<TPayload>> | Interrupt definition caught from forked children. |
Returns
ChildInterruptHandlerBuilder<TPayload>
Frozen child interrupt handler builder.