Обзор
functionCore Record

abortChildren

Aborts every tracked child controller.

Signature

tsSignature
export function abortChildren(childControllers: AbortController[], reason: unknown): void;

Imports

tsImport
import { abortChildren } from "@/lib/flow/core/record";
import { abortChildren } from "@/lib/flow";

Parameters

childControllers
AbortController[]

Controllers to abort.

reason
unknown

Abort reason propagated to each child.

Details

Parent helpers call this when a parallel operation settles and remaining work should stop.

when

Branches between two behaviors using a predicate function.

function

Source

tsflow/core/record.ts:174-178
export function abortChildren(childControllers: AbortController[], reason: unknown): void {
for (const controller of childControllers) {
abortController(controller, reason);
}
}