Skip to main content

Class: CancellationTokenSource

Defined in: packages/extension-api/src/extension-api.d.ts:1318

Constructors

new CancellationTokenSource()

new CancellationTokenSource(): CancellationTokenSource

Returns

CancellationTokenSource

Properties

token

token: CancellationToken

Defined in: packages/extension-api/src/extension-api.d.ts:1322

The cancellation token of this source.

Methods

cancel()

cancel(): void

Defined in: packages/extension-api/src/extension-api.d.ts:1327

Signal cancellation on the token.

Returns

void


dispose()

dispose(): void

Defined in: packages/extension-api/src/extension-api.d.ts:1332

Dispose object and free resources.

Returns

void