summaryrefslogtreecommitdiff
path: root/sw-client/src/commonMain/kotlin/org
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 /sw-client/src/commonMain/kotlin/org
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
Diffstat (limited to 'sw-client/src/commonMain/kotlin/org')
-rw-r--r--sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt1
1 files changed, 0 insertions, 1 deletions
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()
bgstack15