Instance Methodswift 6.0.3_Concurrency
next
Produces the next element in the filter sequence.
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
mutating func next() async rethrows -> Base.Element?
This iterator calls next()
on its base iterator; if this call returns nil
, next()
returns nil. Otherwise, next()
evaluates the result with the predicate
closure. If the closure returns true
, next()
returns the received element; otherwise it awaits the next element from the base iterator.