API reference@evolu/commonTask › AbortMask

type AbortMask = NonNegativeInt & Brand<"AbortMask">;

Defined in: packages/common/src/Task.ts:1742

Abort mask depth for a Run.

0 means the Run observes abort requests immediately. >= 1 means the Run is protected by one or more unabortable or unabortableMask scopes. Abort requests are still recorded, but the Run's observed abort signal is aborted only when the mask is 0.

Plain child Tasks inherit their parent's mask. unabortable increments the mask for the wrapped Task, and unabortableMask provides restore to run selected child Tasks with the previous mask.