timeout
fun timeout(startState: S, targetState: S, timeout: C.() -> Long, 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
timeout
The length in milliseconds to wait before the timeout will occur and trigger the transition.
action
The optional action will be invoked