You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/firebase_database/firebase_database/android/src/main/kotlin/io/flutter/plugins/firebase/database/FirebaseDatabasePlugin.kt
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -637,7 +637,16 @@ class FirebaseDatabasePlugin :
637
637
try {
638
638
// Call the Flutter transaction handler
639
639
val flutterApi =FirebaseDatabaseFlutterApi(messenger)
640
-
val handlerResult =Tasks.await(flutterApi.callTransactionHandler(request.transactionKey, mutableData.value))
640
+
val taskCompletionSource =TaskCompletionSource<TransactionHandlerResult>()
641
+
642
+
flutterApi.callTransactionHandler(request.transactionKey, mutableData.value) { result ->
0 commit comments