Required Associated Typeswift 6.1.2_Concurrency
AsyncIterator
The type of asynchronous iterator that produces elements of this asynchronous sequence.
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
associatedtype AsyncIterator : AsyncIteratorProtocolThe type of asynchronous iterator that produces elements of this asynchronous sequence.
associatedtype AsyncIterator : AsyncIteratorProtocolimport _Concurrencyprotocol AsyncSequence<Element, Failure>A type that provides asynchronous, sequential, iterated access to its elements.
protocol AsyncIteratorProtocol<Element, Failure>A type that asynchronously supplies the values of a sequence one at a time.
associatedtype Element where Self.Element == Self.AsyncIterator.ElementThe type of element produced by this asynchronous sequence.
associatedtype Failure = any Error where Self.Failure == Self.AsyncIterator.FailureThe type of errors produced when iteration over the sequence fails.
func makeAsyncIterator() -> Self.AsyncIterator Creates the asynchronous iterator that produces elements of this asynchronous sequence.