Updated on 2026-08-14
This commit is contained in:
parent
60eebd4ba6
commit
02e01462dd
1 changed files with 0 additions and 5 deletions
|
|
@ -1,6 +1,5 @@
|
|||
package com.tangem.domain.redux.extensions
|
||||
|
||||
import com.tangem.domain.common.extensions.withIOContext
|
||||
import com.tangem.domain.common.extensions.withMainContext
|
||||
import com.tangem.domain.redux.domainStore
|
||||
import org.rekotlin.Action
|
||||
|
|
@ -10,8 +9,4 @@ import org.rekotlin.Action
|
|||
*/
|
||||
internal suspend inline fun dispatchOnMain(vararg actions: Action) {
|
||||
withMainContext { actions.forEach { domainStore.dispatch(it) } }
|
||||
}
|
||||
|
||||
internal suspend inline fun dispatchOnIO(vararg actions: Action) {
|
||||
withIOContext { actions.forEach { domainStore.dispatch(it) } }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue