Skip to main content

CancellationTokenSource

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / utils/app/async/cancellationToken / CancellationTokenSource

Class: CancellationTokenSource

Defined in: utils/app/async/cancellationToken.ts:105

Cancellation token source for creating and managing tokens.

Constructors​

Constructor​

new CancellationTokenSource(): CancellationTokenSource

Returns​

CancellationTokenSource

Properties​

token​

readonly token: CancellationToken

Defined in: utils/app/async/cancellationToken.ts:106

Methods​

cancel()​

cancel(): void

Defined in: utils/app/async/cancellationToken.ts:111

Cancel the token.

Returns​

void


dispose()​

dispose(): void

Defined in: utils/app/async/cancellationToken.ts:118

Dispose of the token source.

Returns​

void