inStateWithCondition

fun inStateWithCondition(isInState: (S) -> Boolean, block: InStateBuilderBlock<S, S, A>.() -> Unit)

Deprecated

use condition block inside inState instead

Define what happens if the store is in a certain state.

Parameters

isInState

The condition under which we identify that the state machine is in a given "state".