Interface CancellationToken

A cancellation token used to request cancellation on long running or asynchronous task.

interface CancellationToken {
    isCancellationRequested: boolean;
    onCancellationRequested: Event<any>;
}

Properties

isCancellationRequested: boolean
onCancellationRequested: Event<any>