automatic
fun automatic(startState: S, targetState: S, guard: StateGuard<C, A>?, action: AsyncStateAction<C, A, R>?)
Parameters
start State
The transition will apply to the specific state.
target State
The state after the transition
guard
The expression must be true to trigger the transition
action
The optional action will be invoked