Package me.angrybyte.kssm.api

Types

Action
Link copied to clipboard
interface Action<out T>
A fundamental building block of a StateMachine.
ErrorHandler
Link copied to clipboard
typealias ErrorHandler = suspend (error: Throwable) -> Unit

A suspending shorthand for reacting to Throwables coming from a StateMachine.

State
Link copied to clipboard
interface State<out T>
A fundamental building block of a StateMachine.
StateMachine
Link copied to clipboard
interface StateMachine
The public-facing API for configuring, using and observing changes within a finite state machine.
TransitionHandler
Link copied to clipboard
typealias TransitionHandler = suspend (transition: Transition<*, *, *>) -> Unit

A suspending shorthand for reacting to Transitions coming from a StateMachine.