CancellationTokenSource

A cancellation source creates and controls a cancellation token.

Online Documentation

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
external var token: CancellationToken

The cancellation token of this source.

Functions

Link copied to clipboard
external fun cancel()

Signal cancellation on the token.

Link copied to clipboard
open external override fun dispose()

Dispose object and free resources.