Cancelable

interface Cancelable

Represents an object that can be marked as canceled.

This is typically used by events whose handlers may choose to interrupt or prevent further processing. When an event implementing Cancelable is posted via Bus.post, its canceled flag is interpreted according to the selected CancelMode:

A default implementation is provided via the companion object's invoke operator.

Inheritors

Types

Link copied to clipboard
object Companion

Factory for obtaining the default Cancelable implementation.

Properties

Link copied to clipboard
abstract val canceled: Boolean

Indicates whether this object has been canceled.

Functions

Link copied to clipboard
abstract fun markCanceled()

Marks this object as canceled.