File tree 1 file changed +6
-6
lines changed
Sources/FirebaseFirestore 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -44,18 +44,18 @@ public class Firestore {
44
44
}
45
45
}
46
46
47
- public func clearPersistence( completion: ( ( ) -> Void ) ? ) {
47
+ public func clearPersistence( completion: ( ( Error ? ) -> Void ) ? ) {
48
48
let future = swift_firebase. swift_cxx_shims. firebase. firestore. firestore_clear_persistence ( impl)
49
49
future. setCompletion ( {
50
50
if let completion {
51
51
DispatchQueue . main. async {
52
- completion ( )
52
+ completion ( nil )
53
53
}
54
54
}
55
55
} )
56
56
}
57
57
58
- public func clearPersistence( ) async {
58
+ public func clearPersistence( ) async throws {
59
59
await withCheckedContinuation { continuation in
60
60
let future = swift_firebase. swift_cxx_shims. firebase. firestore. firestore_clear_persistence ( impl)
61
61
future. setCompletion ( {
@@ -64,18 +64,18 @@ public class Firestore {
64
64
}
65
65
}
66
66
67
- public func terminate( completion: ( ( ) -> Void ) ? ) {
67
+ public func terminate( completion: ( ( Error ? ) -> Void ) ? ) {
68
68
let future = swift_firebase. swift_cxx_shims. firebase. firestore. firestore_terminate ( impl)
69
69
future. setCompletion ( {
70
70
if let completion {
71
71
DispatchQueue . main. async {
72
- completion ( )
72
+ completion ( nil )
73
73
}
74
74
}
75
75
} )
76
76
}
77
77
78
- public func terminate( ) async {
78
+ public func terminate( ) async throws {
79
79
await withCheckedContinuation { continuation in
80
80
let future = swift_firebase. swift_cxx_shims. firebase. firestore. firestore_terminate ( impl)
81
81
future. setCompletion ( {
You can’t perform that action at this time.
0 commit comments