CancelableImpl

internal class CancelableImpl : Cancelable

Internal implementation of the Cancelable interface.

This class provides the minimal state-tracking required for cancellation, storing a mutable cancellation flag that can only be set once. It is used as the default instance returned by Cancelable.invoke and is not intended for direct use outside the library.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override var canceled: Boolean

Indicates whether this object has been canceled.

Functions

Link copied to clipboard
open override fun markCanceled()

Marks this object as canceled.