updateChain

abstract suspend fun updateChain(currentState: T, newState: T)(source)

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