EventState

sealed interface EventState<out A>(source)

Used to help represent Events as nodes.

At each time an event is either EventState.Fired, or there is EventState.None.

Inheritors

Types

Link copied to clipboard
data class Fired<A>(val event: A) : EventState<A>
Link copied to clipboard
data object None : EventState<Nothing>

Functions

Link copied to clipboard
abstract fun isFired(): Boolean
Link copied to clipboard
abstract fun <B> map(f: (A) -> B): EventState<B>