Required Instance Methodswift 6.0.3_Concurrency
next(isolation:)
Asynchronously advances to the next element and returns it, or ends the sequence if there is no next element.
- 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(Self.Failure) -> Self.Element?
Returns
The next element, if it exists, or nil
to signal the end of the sequence.