From df9ac938d7f101ffe077751fe2b59a65be940fa8 Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Wed, 10 Feb 2021 17:14:27 +0100 Subject: Cleanup experimental annotations --- .../org/luxons/sevenwonders/ui/redux/sagas/SagasFramework.kt | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'sw-ui/src/main/kotlin') 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( private val monitor: ((A) -> Unit)? = null, ) { @@ -62,7 +57,7 @@ class SagaManager( } } -@OptIn(FlowPreview::class, ExperimentalCoroutinesApi::class) +@OptIn(ExperimentalCoroutinesApi::class) // for BroadcastChannel class SagaContext( private val reduxApi: MiddlewareApi, private val actions: BroadcastChannel, -- cgit