From ca9fbd035cda96047abdda515cc99a443d0fd3f6 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Sat, 2 Jul 2022 20:52:34 +0200 Subject: Upgrade coroutines to 1.6.3 --- gradle/libs.versions.toml | 2 +- .../kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt | 1 - sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/Sagas.kt | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 21bc54b6..d63e2d38 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,5 @@ [versions] -kotlinx-coroutines = "1.6.0" +kotlinx-coroutines = "1.6.3" kotlinx-serialization = "1.3.2" krossbow = "3.0.0" logback-classic = "1.2.10" diff --git a/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt b/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt index b0dfdee2..065635dd 100644 --- a/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt +++ b/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt @@ -145,7 +145,6 @@ suspend fun SevenWondersSession.joinGameAndAwaitLobby(gameId: Long): LobbyDTO = subscribe = { watchLobbyJoined() }, ) -@OptIn(ExperimentalCoroutinesApi::class) private suspend fun doAndWaitForEvent(send: suspend () -> Unit, subscribe: suspend () -> Flow): T = coroutineScope { val eventsFlow = subscribe() diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/Sagas.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/Sagas.kt index 08e5f3d9..2ad98c8e 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/Sagas.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/Sagas.kt @@ -17,7 +17,6 @@ import webpack.isProdEnv typealias SwSagaContext = SagaContext -@OptIn(ExperimentalCoroutinesApi::class) suspend fun SwSagaContext.rootSaga() = try { coroutineScope { val action = next() -- cgit