Structureswift 6.0.1_Concurrency
Iterator
The iterator that produces elements of the prefix-while sequence.
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
struct Iterator
Other members in extension
Typealiases
typealias AsyncIterator
The type of iterator that produces elements of the sequence.
typealias Element
The type of element produced by this asynchronous sequence.
typealias Failure
The type of error produced by this asynchronous sequence.
Instance members
Citizens in _Concurrency
Conformances
protocol AsyncIteratorProtocol<Element, Failure>
A type that asynchronously supplies the values of a sequence one at a time.
Instance members
func next(
) async throws -> Base.Element? Produces the next element in the prefix-while sequence.
func next(isolation: isolated (any Actor)?
) async throws -> Base.Element? Produces the next element in the prefix-while sequence.
Instance features
func next(isolation: isolated (any Actor)?
) async throws Default implementation of
next()
in terms ofnext()
, which is required to maintain backward compatibility with existing async iterators.