SwiftstructAsyncAlgorithmsInternal

struct AsyncAlgorithmsInternal.AsyncThrowingExclusiveReductionsSequence.Iterator

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 7

  1. fieldvar current: B?
  2. fieldvar iterator: A.AsyncSequence.AsyncIterator
  3. fieldlet transform: @Sendable (inout B, A.AsyncSequence.Element) async throws -> ()
  4. funcnext() async throws -> B?
  5. initinit(_: A.AsyncIterator, initial: B, transform: @Sendable (inout B, A.Element) async throws -> ()) -> AsyncAlgorithmsInternal.AsyncThrowingExclusiveReductionsSequence<A, B>.Iterator
  6. typealiastypealias Element = B
  7. typealiastypealias Failure = Swift.Error
struct AsyncAlgorithmsInternal.AsyncThrowingExclusiveReductionsSequence.Iterator {
    var iterator: A.AsyncIterator
    var current: B?
    let transform: @Sendable (inout B, A.Element) async throws -> ()

    init(_: A.AsyncIterator, initial: B, transform: @escaping @Sendable (inout B, A.Element) async throws -> ())

    func next() async throws -> B?
}