summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@gmail.com>2022-07-02 20:52:34 +0200
committerJoffrey Bion <joffrey.bion@gmail.com>2022-07-02 20:53:26 +0200
commitca9fbd035cda96047abdda515cc99a443d0fd3f6 (patch)
tree3545409ef25da63567a80f205ea9642e3129ecc4
parentCheck-in yarn.lock (diff)
downloadseven-wonders-ca9fbd035cda96047abdda515cc99a443d0fd3f6.tar.gz
seven-wonders-ca9fbd035cda96047abdda515cc99a443d0fd3f6.tar.bz2
seven-wonders-ca9fbd035cda96047abdda515cc99a443d0fd3f6.zip
Upgrade coroutines to 1.6.3
-rw-r--r--gradle/libs.versions.toml2
-rw-r--r--sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt1
-rw-r--r--sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/Sagas.kt1
3 files changed, 1 insertions, 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 <T> doAndWaitForEvent(send: suspend () -> Unit, subscribe: suspend () -> Flow<T>): 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<SwState, RAction, WrapperAction>
-@OptIn(ExperimentalCoroutinesApi::class)
suspend fun SwSagaContext.rootSaga() = try {
coroutineScope {
val action = next<RequestChooseName>()
bgstack15