Iterator
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
public struct Iterator : AsyncIteratorProtocolextension DocumentReference.DocumentSnapshotsSequence.Iterator: SendableThe asynchronous iterator for DocumentSnapshotsSequence.
-
Undocumented
Declaration
Swift
public typealias Element = DocumentSnapshot -
Produces the next element in the asynchronous sequence.
Returns a
DocumentSnapshotvalue ornilif the sequence has terminated. Throws an error if the underlying listener encounters an issue.Declaration
Swift
public mutating func next() async throws -> Element?Return Value
An optional
DocumentSnapshotobject.