refactoring and fixes

This commit is contained in:
InsanusMokrassar committed 2022-05-11 10:56:31 +06:00
1 parent 3e58114eeb
commit ad97008f12
3 files changed
+50 -14

No files matched your search

@@ -94,7 +94,7 @@ class DefaultBehaviourContextWithFSM<T : State>(
private val additionalHandlers = mutableListOf<BehaviourWithFSMStateHandlerHolder<*, T>>()
private var actualHandlersList = additionalHandlers + handlers
private suspend fun getSubContext(context: Any) = updatesFlows.getOrPut(context) {
private fun getSubContext(context: Any) = updatesFlows.getOrPut(context) {
createSubContext()
}