A cancellation source creates and controls a cancellation token.

Hierarchy

  • CancellationTokenSource

Constructors

Properties

#isCancelled: boolean = false
#isDisposed: boolean = false
#listenerIdRef: number = 0
#listeners: (() => unknown)[] = ...

Type declaration

    • (): unknown
    • Returns unknown

The cancellation token of this source.

Accessors

Methods