Structureswift 6.0.1_Concurrency
Iterator
The iterator that produces elements of the flat map 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 -> SegmentOfResult.Element? Produces the next element in the flat map sequence.
func next(isolation: isolated (any Actor)?
) async throws -> SegmentOfResult.Element? Produces the next element in the flat map 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.