CancellationToken

interface CancellationToken

Implemented by classes that contain some form of cancellation logic.

Types

Companion
Link copied to clipboard
object Companion

Functions

cancel
Link copied to clipboard
abstract fun cancel()
Execute the cancellation logic.

Properties

isCanceled
Link copied to clipboard
abstract val isCanceled: Boolean
Whether the cancel() method has already been called and the cancellation logic successfully executed.