Interface CancellationToken
interface CancellationToken {
isCancellationRequested: boolean;
onCancellationRequested: (
listener: (e: any) => any,
thisArgs?: any,
disposables?: IDisposable[],
) => IDisposable;
}Properties§
§
readonly is Cancellation Requested: booleanEvents§
§
readonly on Cancellation Requested: { ... }An event which fires when cancellation is requested. This event
only ever fires once as cancellation can only happen once. Listeners
that are registered after cancellation will be called (next event loop run),
but also only once.
A flag signalling is cancellation has been requested.