diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-03-25 12:13:49 +0100 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-03-27 10:59:39 +0100 |
commit | 071fe9916dbd6d646c6fbccd40a2e1261981a08c (patch) | |
tree | b31bb50513248cc19eb9c44cc523d4382079f442 /sw-ui-kt | |
parent | Fix krossbow common artifact (diff) | |
download | seven-wonders-071fe9916dbd6d646c6fbccd40a2e1261981a08c.tar.gz seven-wonders-071fe9916dbd6d646c6fbccd40a2e1261981a08c.tar.bz2 seven-wonders-071fe9916dbd6d646c6fbccd40a2e1261981a08c.zip |
Migrate @UseExperimental to @OptIn
Diffstat (limited to 'sw-ui-kt')
-rw-r--r-- | sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/SagasFramework.kt | 4 | ||||
-rw-r--r-- | sw-ui-kt/src/test/kotlin/org/luxons/sevenwonders/ui/redux/sagas/SagasFrameworkTest.kt | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/SagasFramework.kt b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/SagasFramework.kt index fddaf85c..dc31f41a 100644 --- a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/SagasFramework.kt +++ b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/SagasFramework.kt @@ -15,7 +15,7 @@ import redux.MiddlewareApi import redux.RAction import kotlin.coroutines.coroutineContext -@UseExperimental(ExperimentalCoroutinesApi::class) +@OptIn(ExperimentalCoroutinesApi::class) class SagaManager<S, A : RAction, R>( private val monitor: ((A) -> Unit)? = null ) { @@ -64,7 +64,7 @@ class SagaManager<S, A : RAction, R>( } } -@UseExperimental(FlowPreview::class, ExperimentalCoroutinesApi::class) +@OptIn(FlowPreview::class, ExperimentalCoroutinesApi::class) class SagaContext<S, A : RAction, R>( private val reduxApi: MiddlewareApi<S, A, R>, private val actions: BroadcastChannel<A> ) { diff --git a/sw-ui-kt/src/test/kotlin/org/luxons/sevenwonders/ui/redux/sagas/SagasFrameworkTest.kt b/sw-ui-kt/src/test/kotlin/org/luxons/sevenwonders/ui/redux/sagas/SagasFrameworkTest.kt index 19489375..8182401f 100644 --- a/sw-ui-kt/src/test/kotlin/org/luxons/sevenwonders/ui/redux/sagas/SagasFrameworkTest.kt +++ b/sw-ui-kt/src/test/kotlin/org/luxons/sevenwonders/ui/redux/sagas/SagasFrameworkTest.kt @@ -39,7 +39,7 @@ private data class TestRedux( val sagas: SagaManager<State, RAction, WrapperAction> ) -@UseExperimental(ExperimentalCoroutinesApi::class) +@OptIn(ExperimentalCoroutinesApi::class) class SagaContextTest { @Test |