Iterator

public struct Iterator : AsyncIteratorProtocol

An AsyncIteratorProtocol of results from an AsyncCloudKit operation.

See also

AsyncSequence
  • next() Asynchronous

    Asynchronously advances to the next result and returns it, or ends the sequence if there is no next result.

    Declaration

    Swift

    public mutating func next() async throws -> Element?

    Return Value

    The next result, if it exists, or nil to signal the end of the sequence.