In Memory States Manager
fun InMemoryStatesManager(onContextsConflictResolver: suspend (old: State, new: State, currentNew: State) -> Boolean = { _, _, _ -> true })
Content copied to clipboard
Parameters
on Contexts Conflict Resolver
Receive old State, new one and the state currently placed on new State.context key. In case when this callback will returns true, the state placed on State.context of new will be replaced by new state by using endChain with that state