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.

Source

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


onCancellationRequested

onCancellationRequested: Event< any >

An Event which fires upon cancellation.

Source

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