Updatable States Machine
This extender of StatesMachine interface declare one new function updateChain. Realizations of this interface must be able to perform update of chain in internal StatesManager
Functions
handle State
Link copied to clipboard
Main handling of state. In case when this state leads to another State and handleState returns not null State it is assumed that chain is not completed.
launch State Handling
Link copied to clipboard
open suspend fun launchStateHandling(state: T, handlers: List<CheckableHandlerHolder<in T, T>>): T?
Content copied to clipboard
start Chain
Link copied to clipboard
update Chain
Link copied to clipboard
Update chain with current state equal to currentState with newState. Behaviour of this update preforming in cases when currentState does not exist in StatesManager must be declared inside of realization of StatesManager.update function