Genel bakış
typeCore Runtime

Cancelled

Runtime error returned when execution is cancelled through an `AbortSignal`.

Signature

tsSignature
export type Cancelled = {
kind: "cancelled";
reason?: unknown;
};

Imports

tsImport
import { Cancelled } from "@/lib/flow/core/runtime";
import { Cancelled } from "@/lib/flow";

Details

Cancellation is cooperative. Flow helpers check the signal before and after async work and pass

linked signals to child behaviors where appropriate.

cancelled

Creates a cancellation result.

function

Source

tsflow/core/runtime.ts:9-12
export type Cancelled = {
kind: "cancelled";
reason?: unknown;
};