popTransition

fun popTransition(startState: S, event: E, targetState: S?, targetMap: String?, guard: StateGuard<C, A>?, action: AsyncStateAction<C, A, R>?)

Creates a pop transition that applies to the startState on a given event. This will result in a new push transition if the guard expression is true

Parameters

startState

The pop transition will apply to the specific state.

event

The event that will trigger the transition

targetState

The state after the transition

targetMap

The map after the transition

guard

The expression must evaludate to true before the transition will be trigger.

action

The optional action that will be invoked.