CancellationTokenSource

A cancellation source creates and controls a cancellation token.

Online Documentation

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The cancellation token of this source.

Functions

Link copied to clipboard
fun cancel()

Signal cancellation on the token.

Link copied to clipboard
open override fun dispose()

Dispose object and free resources.