handleState

abstract suspend fun StatesMachine<in O>.handleState(state: I): O?(source)

Main handling of state. In case when this state leads to another State and handleState returns not null State it is assumed that chain is not completed.