Skip to main content

Interface: CancellationToken

A cancellation token is passed to an asynchronous or long running operation to request cancellation.

Properties

isCancellationRequested

isCancellationRequested: boolean

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

Defined in

packages/extension-api/src/extension-api.d.ts:1082


onCancellationRequested

onCancellationRequested: Event<any>

An Event which fires upon cancellation.

Defined in

packages/extension-api/src/extension-api.d.ts:1088