MachineDsl

class MachineDsl<S : Any, E : Any>

Functions

onEach
Link copied to clipboard
inline fun <P> onEach(eventPayloads: Flow<P>, init: TransitionDsl<S, S, P, E>.() -> Unit)
whenIn
Link copied to clipboard
inline fun <T : S> whenIn(init: StateDsl<T, S, E>.() -> Unit)

Properties

events
Link copied to clipboard
val events: Flow<E>
initial
Link copied to clipboard
var initial: Pair<S, suspend (S) -> Unit?>? = null
initialLazy
Link copied to clipboard
var initialLazy: Pair<suspend () -> S, suspend (S) -> Unit?>? = null