SwiftstructAsyncAlgorithmsInternal

struct AsyncAlgorithmsInternal._AsyncThrottleSequence.Iterator

Structure

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

inherits{}

Members 8

  1. fieldvar base: A.AsyncSequence.AsyncIterator
  2. fieldlet clock: B
  3. fieldlet interval: B.Clock.Duration
  4. fieldvar last: B.Clock.Instant?
  5. fieldlet reducing: @Sendable (C?, A.AsyncSequence.Element) async -> C
  6. funcnext() async throws -> C?
  7. typealiastypealias Element = C
  8. typealiastypealias Failure = A.Swift.AsyncSequence.Failure
struct AsyncAlgorithmsInternal._AsyncThrottleSequence.Iterator {
    var base: A.AsyncIterator
    var last: B.Instant?
    let interval: B.Duration
    let clock: B
    let reducing: @Sendable (C?, A.Element) async -> C

    func next() async throws -> C?
}