We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7350bb3 commit 2f7a650Copy full SHA for 2f7a650
firebase-database/src/jsMain/kotlin/dev/gitlive/firebase/database/database.kt
@@ -141,7 +141,7 @@ actual class DatabaseReference internal constructor(override val js: firebase.da
141
}
142
},
143
applyLocally = false
144
- ).await()
+ )
145
return deferred.await()
146
147
@@ -200,10 +200,13 @@ inline fun <R> rethrow(function: () -> R): R {
200
201
suspend fun <T> Promise<T>.awaitWhileOnline(): T = coroutineScope {
202
203
+// [email protected]()
204
val notConnected = Firebase.database
205
.reference(".info/connected")
206
.valueEvents
- .filter { !it.value<Boolean>() }
207
+ .filter {
208
+ !it.value<Boolean>()
209
+ }
210
.produceIn(this)
211
212
select<T> {
0 commit comments