AsyncDslStateMapHandler

This handler will be active inside the top level of the stateMachine definition.

Constructors

Link copied to clipboard
constructor(fsm: AsyncStateMapBuilder<S, E, C, A, R>)

Functions

Link copied to clipboard

Defines a section for default behaviour for the state machine.

Link copied to clipboard
fun whenState(currentState: S, handler: AsyncDslStateMapEventHandler<S, E, C, A, R>.() -> Unit): AsyncDslStateMapEventHandler<S, E, C, A, R>

Defines a section for a specific state.