Skip to main content

Class: CancellationTokenSource

Constructors

new CancellationTokenSource()

new CancellationTokenSource(): CancellationTokenSource

Returns

CancellationTokenSource

Properties

token

token: CancellationToken

The cancellation token of this source.

Source

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

Methods

cancel()

cancel(): void

Signal cancellation on the token.

Returns

void

Source

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


dispose()

dispose(): void

Dispose object and free resources.

Returns

void

Source

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