Singularity API (multiplatformx-api)
/
org.brightify.hyperdrive.multiplatformx
/
CancellationToken
Cancellation
Token
interface
CancellationToken
Content copied to clipboard
Implemented by classes that contain some form of cancellation logic.
Types
Functions
Properties
Types
Companion
Link copied to clipboard
object
Companion
Content copied to clipboard
Functions
cancel
Link copied to clipboard
abstract fun
cancel
()
Content copied to clipboard
Execute the cancellation logic.
Properties
isCanceled
Link copied to clipboard
abstract val
isCanceled
:
Boolean
Content copied to clipboard
Whether the
cancel()
method has already been called and the cancellation logic successfully executed.