automatic

fun automatic(startState: S, targetState: S, guard: StateGuard<C, A>?, action: AsyncStateAction<C, A, R>?)

Parameters

startState

The transition will apply to the specific state.

targetState

The state after the transition

guard

The expression must be true to trigger the transition

action

The optional action will be invoked