SequenceAsyncSequenceIterator

public struct SequenceAsyncSequenceIterator<P> : AsyncIteratorProtocol where P : Sequence

Initialization

  • Declaration

    Swift

    public init(_ iterator: P.Iterator)

AsyncIteratorProtocol

  • next() Asynchronous

    Produces the next element in the sequence.

    Declaration

    Swift

    public mutating func next() async -> P.Element?

    Return Value

    The next element or nil if the end of the sequence is reached.