Skip to content

Commit 738a819

Browse files
committed
[Firestore] Label '@mainactor' isolated APIs of 'FirestoreQuery'
1 parent cb0bc77 commit 738a819

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firestore/Swift/Source/PropertyWrapper/FirestoreQuery.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@ public struct FirestoreQuery<T>: DynamicProperty {
143143
/// The results of the query.
144144
///
145145
/// This property returns an empty collection when there are no matching results.
146-
public var wrappedValue: T {
146+
@MainActor @preconcurrency public var wrappedValue: T {
147147
firestoreQueryObservable.items
148148
}
149149

150150
/// A binding to the request's mutable configuration properties
151-
public var projectedValue: Configuration {
151+
@MainActor @preconcurrency public var projectedValue: Configuration {
152152
get {
153153
firestoreQueryObservable.configuration
154154
}

0 commit comments

Comments
 (0)