diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-10 17:14:27 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-10 17:14:27 +0100 |
commit | df9ac938d7f101ffe077751fe2b59a65be940fa8 (patch) | |
tree | 29841267710b73b0e74d675cb9f4da8443047f4a /sw-ui/src/main/kotlin | |
parent | Better connection logs (diff) | |
download | seven-wonders-df9ac938d7f101ffe077751fe2b59a65be940fa8.tar.gz seven-wonders-df9ac938d7f101ffe077751fe2b59a65be940fa8.tar.bz2 seven-wonders-df9ac938d7f101ffe077751fe2b59a65be940fa8.zip |
Cleanup experimental annotations
Diffstat (limited to 'sw-ui/src/main/kotlin')
-rw-r--r-- | sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/SagasFramework.kt | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/SagasFramework.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/SagasFramework.kt index 0a2d7fa5..cb15460d 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/SagasFramework.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/SagasFramework.kt @@ -1,19 +1,14 @@ package org.luxons.sevenwonders.ui.redux.sagas -import kotlinx.coroutines.CoroutineScope -import kotlinx.coroutines.ExperimentalCoroutinesApi -import kotlinx.coroutines.FlowPreview -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.Job +import kotlinx.coroutines.* import kotlinx.coroutines.channels.BroadcastChannel import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.collect -import kotlinx.coroutines.launch import redux.Middleware import redux.MiddlewareApi import redux.RAction -@OptIn(ExperimentalCoroutinesApi::class) +@OptIn(ExperimentalCoroutinesApi::class) // for BroadcastChannel class SagaManager<S, A : RAction, R>( private val monitor: ((A) -> Unit)? = null, ) { @@ -62,7 +57,7 @@ class SagaManager<S, A : RAction, R>( } } -@OptIn(FlowPreview::class, ExperimentalCoroutinesApi::class) +@OptIn(ExperimentalCoroutinesApi::class) // for BroadcastChannel class SagaContext<S, A : RAction, R>( private val reduxApi: MiddlewareApi<S, A, R>, private val actions: BroadcastChannel<A>, |