Skip to content

Commit f7a77de

Browse files
committed
rename
1 parent ad3abbb commit f7a77de

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import Foundation
2323

2424
@available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *)
2525
public extension Query {
26-
func snapshots() -> AsyncThrowingStream<QuerySnapshot, Error> {
26+
func asyncThrowingStream() -> AsyncThrowingStream<QuerySnapshot, Error> {
2727
AsyncThrowingStream { continuation in
2828
let listener = self.addSnapshotListener { snapshot, error in
2929
if let snapshot = snapshot {
@@ -39,7 +39,7 @@ public extension Query {
3939
}
4040
}
4141

42-
func snapshots(options: SnapshotListenOptions) -> AsyncThrowingStream<QuerySnapshot, Error> {
42+
func asyncThrowingStream(options: SnapshotListenOptions) -> AsyncThrowingStream<QuerySnapshot, Error> {
4343
AsyncThrowingStream { continuation in
4444
let listener = self.addSnapshotListener(options: options) { snapshot, error in
4545
if let snapshot = snapshot {

Firestore/Swift/Tests/Integration/AsyncAwaitIntegrationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ let emptyBundle = """
168168
// The Task will write to it after receiving the first snapshot.
169169
let (signalStream, signalContinuation) = AsyncStream.makeStream(of: Void.self)
170170

171-
let stream = query.snapshots()
171+
let stream = query.asyncThrowingStream()
172172
var iterator = stream.makeAsyncIterator()
173173

174174
let task = Task {

0 commit comments

Comments
 (0)