@portfolio-resilience/core
    Preparing search index...

    Class CancellationToken

    Cancellation token for pipeline operations.

    TypeScript analogue of CancellationToken: cooperative cancellation via AbortSignal, plus a child() for linked tokens (timeout layer).

    Index
    • get isCancelled(): boolean

      Whether this token or any parent has been cancelled.

      Returns boolean

    • get signal(): AbortSignal

      The underlying AbortSignal.

      Returns AbortSignal

    • Cancel this token.

      Returns void

    • Clean up parent listener.

      Returns void

    • Throw AbortError if cancelled.

      Returns void