Type Aliasswift 6.0.3_Concurrency
Failure
- iOS
- 18.0+
- macOS
- 15.0+
- tvOS
- 18.0+
- visionOS
- 2.0+
- watchOS
- 11.0+
typealias Failure = Base.Failure
typealias Failure = Base.Failure
s12_Concurrency24AsyncPrefixWhileSequenceV8IteratorV7Failurea
What are these?6GXSO
import _Concurrency
struct Iterator
The iterator that produces elements of the prefix-while sequence.
struct AsyncPrefixWhileSequence<Base> where Base : AsyncSequence
An asynchronous sequence, containing the initial, consecutive elements of the base sequence that satisfy a given predicate.
associatedtype Failure = any Error where Self.Failure == Self.AsyncIterator.Failure
The type of errors produced when iteration over the sequence fails.
mutating func next() async rethrows -> Base.Element?
Produces the next element in the prefix-while sequence.
mutating func next(isolation actor: isolated (any Actor)?) async throws(AsyncPrefixWhileSequence<Base>.Iterator.Failure) -> Base.Element?
Produces the next element in the prefix-while sequence.