Skip to main content

Class: CancellationTokenSource

Constructors

new CancellationTokenSource()

new CancellationTokenSource(): CancellationTokenSource

Returns

CancellationTokenSource

Properties

token

token: CancellationToken

The cancellation token of this source.

Defined in

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

Methods

cancel()

cancel(): void

Signal cancellation on the token.

Returns

void

Defined in

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


dispose()

dispose(): void

Dispose object and free resources.

Returns

void

Defined in

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