Interface CancellationToken

interface CancellationToken {
    isCancellationRequested: boolean;
    onCancellationRequested: any;
}

Properties

isCancellationRequested: boolean

Is true when the token has been cancelled, false otherwise.

onCancellationRequested: any

An event which fires upon cancellation.