Skip to content

Commit a232333

Browse files
committed
fix an issue where passing transaction object caused sendability error
1 parent b1c17f7 commit a232333

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firestore/Swift/Source/AsyncAwait/Firestore+AsyncAwait.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public extension Firestore {
102102
/// explicitly specified in the `updateBlock` parameter.
103103
/// - Returns Returns the value returned in the `updateBlock` parameter if no errors occurred.
104104
func runTransaction(_ updateBlock: @escaping (Transaction, NSErrorPointer)
105-
-> Any?) async throws -> Any? {
105+
-> sending Any?) async throws -> sending Any? {
106106
// This needs to be wrapped in order to express a nullable return value upon success.
107107
// See https://github.com/firebase/firebase-ios-sdk/issues/9426 for more details.
108108
return try await withCheckedThrowingContinuation { continuation in

0 commit comments

Comments
 (0)