Async State Machine Definition
Properties
Functions
Link copied to clipboard
fun create(context: C, coroutineScope: CoroutineScope, initial: S? = null): AsyncStateMachineInstance<S, E, C, A, R>
This function will create a state machine instance and set it to the initial state.
fun create(context: C, coroutineScope: CoroutineScope, initialExternalState: ExternalState<S>): AsyncStateMachineInstance<S, E, C, A, R>
This function will create a state machine instance and set it to the state to a previously externalised state.
Link copied to clipboard
This function will provide a list of possible events given a specific state. The actual events may fail because of guard conditions or named state maps and the default state map behaviour being different.