Instance Methodswift 6.0.3_Concurrency
next(isolation:)
Produces the next element in the filter sequence.
- iOS
- 18.0+
- macOS
- 15.0+
- tvOS
- 18.0+
- visionOS
- 2.0+
- watchOS
- 11.0+
mutating func next(isolation actor: isolated (any Actor)?) async throws(AsyncFilterSequence<Base>.Iterator.Failure) -> Base.Element?
This iterator calls next(isolation:)
on its base iterator; if this call returns nil
, next(isolation:)
returns nil. Otherwise, next(isolation:)
evaluates the result with the predicate
closure. If the closure returns true
, next(isolation:)
returns the received element; otherwise it awaits the next element from the base iterator.