Required Associated Typeswift 6.1.2_Concurrency
Element
The type of element produced by this asynchronous sequence.
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
associatedtype Element where Self.Element == Self.AsyncIterator.Element
The type of element produced by this asynchronous sequence.
associatedtype Element where Self.Element == Self.AsyncIterator.Element
import _Concurrency
protocol AsyncSequence<Element, Failure>
A type that provides asynchronous, sequential, iterated access to its elements.
associatedtype AsyncIterator : AsyncIteratorProtocol
The type of asynchronous iterator that produces elements of this asynchronous sequence.
associatedtype Element
associatedtype Failure = any Error where Self.Failure == Self.AsyncIterator.Failure
The 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.