stay

fun stay(): S

Keeps the FSM in its current state. Usually used when handling events that don't need to make a transition.

onEvent<SomeEvent> { state, event -> stay() }

Return

the current state value