Open Design

Interface CancelToken

signal
AbortSignal
isCancelled
isCancelled(): boolean
returns boolean
isDisposed
isDisposed(): boolean
returns boolean
onCancelled
onCancelled(listener: (reason: Error) => void): () => void

Parameters:

listener:

Parameters:

reason: Error
returns void
returns () => void
onDisposed
onDisposed(listener: () => void): () => void

Parameters:

listener:

Parameters:

returns void
returns () => void
throwIfCancelled
throwIfCancelled(): void
returns void