// Generated by HeaderLand from iOS 27.2.1 (24B156), /System/Library/PrivateFrameworks/AsyncAlgorithmsInternal.framework/AsyncAlgorithmsInternal.
// Recovered from the binary: no comments, no parameter names Swift does not keep, no availability.
class AsyncChannel {
struct Iterator {
let storage: AsyncAlgorithmsInternal.ChannelStorage
func next() async -> A?
}
let storage: AsyncAlgorithmsInternal.ChannelStorage
init()
final func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncChannel.Iterator
final func send(_: A) async
final func finish()
deinit
}
class AsyncAlgorithmsInternal.AsyncCombineLatest2Sequence.Iterator.InternalClass {
let storage: AsyncAlgorithmsInternal.CombineLatestStorage
}
class AsyncAlgorithmsInternal.AsyncCombineLatest3Sequence.Iterator.InternalClass {
let storage: AsyncAlgorithmsInternal.CombineLatestStorage
}
class AsyncAlgorithmsInternal.AsyncDebounceSequence.Iterator.InternalClass {
let storage: AsyncAlgorithmsInternal.DebounceStorage
}
class AsyncAlgorithmsInternal.AsyncMerge2Sequence.Iterator.InternalClass {
let storage: AsyncAlgorithmsInternal.MergeStorage
}
class AsyncAlgorithmsInternal.AsyncMerge3Sequence.Iterator.InternalClass {
let storage: AsyncAlgorithmsInternal.MergeStorage
}
class AsyncThrowingChannel where B: Swift.Error {
struct Iterator {
let storage: AsyncAlgorithmsInternal.ChannelStorage
func next() async throws -> A?
}
let storage: AsyncAlgorithmsInternal.ChannelStorage
init()
final func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncThrowingChannel.Iterator
final func fail(_: any Swift.Error) where B == any Swift.Error
final func send(_: A) async
final func finish()
deinit
}
class AsyncAlgorithmsInternal.AsyncZip2Sequence.Iterator.InternalClass {
let storage: AsyncAlgorithmsInternal.ZipStorage
}
class AsyncAlgorithmsInternal.AsyncZip3Sequence.Iterator.InternalClass {
let storage: AsyncAlgorithmsInternal.ZipStorage
}
class BoundedBufferStorage where A: Swift.AsyncSequence {
let stateMachine: AsyncAlgorithmsInternal.ManagedCriticalState>
}
class CombineLatestStorage where A: Swift.AsyncSequence, B: Swift.AsyncSequence, C: Swift.AsyncSequence {
let stateMachine: AsyncAlgorithmsInternal.ManagedCriticalState>
}
class DebounceStorage where A: Swift.AsyncSequence, B: Swift.Clock {
let stateMachine: AsyncAlgorithmsInternal.ManagedCriticalState>
let interval: B.Duration
let tolerance: B.Duration?
let clock: B
}
class AsyncAlgorithmsInternal.ManagedCriticalState.LockedBuffer: Swift.ManagedBuffer {}
class MergeStorage where A: Swift.AsyncSequence, B: Swift.AsyncSequence, C: Swift.AsyncSequence, A.Element == B.Element, B.Element == C.Element {
let lock: AsyncAlgorithmsInternal.Lock
var stateMachine: AsyncAlgorithmsInternal.MergeStateMachine
}
class UnboundedBufferStorage where A: Swift.AsyncSequence {
let stateMachine: AsyncAlgorithmsInternal.ManagedCriticalState>
}
class ZipStorage where A: Swift.AsyncSequence, B: Swift.AsyncSequence, C: Swift.AsyncSequence {
let stateMachine: AsyncAlgorithmsInternal.ManagedCriticalState>
}
class AsyncAlgorithmsInternal._AsyncBytesBuffer.Storage {
let buffer: Swift.UnsafeMutableRawBufferPointer
deinit
}
enum AsyncAlgorithmsInternal.AsyncBufferSequence.StorageType {
case transparent(A.AsyncIterator)
case bounded(storage: AsyncAlgorithmsInternal.BoundedBufferStorage)
case unbounded(storage: AsyncAlgorithmsInternal.UnboundedBufferStorage)
}
enum AsyncAlgorithmsInternal.AsyncBufferSequencePolicy._Policy {
case bounded(Swift.Int)
case bufferingNewest(Swift.Int)
case bufferingOldest(Swift.Int)
case unbounded
}
enum AsyncAlgorithmsInternal.AsyncChunksOfCountOrSignalSequence.Either {
case element(A.Element)
case terminal
case signal
}
enum AsyncAlgorithmsInternal.AsyncInterspersedSequence.Iterator.State {
case start(A.Element?)
case element(Swift.Int)
case separator
case finished
}
enum AsyncAlgorithmsInternal.AsyncInterspersedSequence.Separator {
case element(A.Element)
case syncClosure(@Sendable () -> A.Element)
case asyncClosure(@Sendable () async -> A.Element)
}
enum AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator.State {
enum SeparatorState {
case initial(B)
case partialAsync(B.AsyncIterator, Swift.ContiguousArray)
case cached(Swift.ContiguousArray)
case partialCached(Swift.IndexingIterator>, Swift.ContiguousArray)
func startSeparator() -> AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator.State.SeparatorState
func next() async throws -> (B.Element?, AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator.State.SeparatorState)
}
case initial(A.AsyncIterator, B)
case sequence(A.AsyncIterator, A.Element.AsyncIterator, AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator.State.SeparatorState)
case separator(A.AsyncIterator, AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator.State.SeparatorState, A.Element)
case terminal
}
enum AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator.State.SeparatorState {
case initial(B)
case partialAsync(B.AsyncIterator, Swift.ContiguousArray)
case cached(Swift.ContiguousArray)
case partialCached(Swift.IndexingIterator>, Swift.ContiguousArray)
func startSeparator() -> AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator.State.SeparatorState
func next() async throws -> (B.Element?, AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator.State.SeparatorState)
}
enum AsyncAlgorithmsInternal.AsyncJoinedSequence.Iterator.State {
case initial(A.AsyncIterator)
case sequence(A.AsyncIterator, A.Element.AsyncIterator)
case terminal
}
enum AsyncAlgorithmsInternal.AsyncThrowingInterspersedSequence.Iterator.State {
case start(A.Element?)
case element(Swift.Int)
case separator
case finished
}
enum AsyncAlgorithmsInternal.AsyncThrowingInterspersedSequence.Separator {
case syncClosure(@Sendable () throws -> A.Element)
case asyncClosure(@Sendable () async throws -> A.Element)
}
enum AsyncAlgorithmsInternal.BoundedBufferStateMachine.ElementProducedAction {
case resumeConsumer(continuation: Swift.UnsafeContinuation?, Swift.Never>, result: Swift.Result)
case none
}
enum AsyncAlgorithmsInternal.BoundedBufferStateMachine.FinishAction {
case resumeConsumer(continuation: Swift.UnsafeContinuation?, Swift.Never>?)
case none
}
enum AsyncAlgorithmsInternal.BoundedBufferStateMachine.InterruptedAction {
case resumeProducerAndConsumer(task: Swift.Task<(), Swift.Never>, producerContinuation: Swift.UnsafeContinuation<(), Swift.Never>?, consumerContinuation: Swift.UnsafeContinuation?, Swift.Never>?)
case none
}
enum AsyncAlgorithmsInternal.BoundedBufferStateMachine.NextAction {
case startTask(base: A)
case returnResult(producerContinuation: Swift.UnsafeContinuation<(), Swift.Never>?, result: Swift.Result?)
case suspend
}
enum AsyncAlgorithmsInternal.BoundedBufferStateMachine.NextSuspendedAction {
case returnResult(producerContinuation: Swift.UnsafeContinuation<(), Swift.Never>?, result: Swift.Result?)
case none
}
enum AsyncAlgorithmsInternal.BoundedBufferStateMachine.ProducerSuspendedAction {
case none
case resumeProducer
}
enum AsyncAlgorithmsInternal.BoundedBufferStateMachine.State {
case initial(base: A)
case buffering(task: Swift.Task<(), Swift.Never>, buffer: CollectionsInternal.Deque, any Swift.Error>>, suspendedProducer: Swift.UnsafeContinuation<(), Swift.Never>?, suspendedConsumer: Swift.UnsafeContinuation?, Swift.Never>?)
case finished(buffer: CollectionsInternal.Deque, any Swift.Error>>)
case modifying
}
enum AsyncAlgorithmsInternal.ChannelStateMachine.FinishAction {
case resumeProducersAndConsumers(producerSontinuations: [Swift.UnsafeContinuation<(), Swift.Never>?], consumerContinuations: [Swift.UnsafeContinuation?])
case none
}
enum AsyncAlgorithmsInternal.ChannelStateMachine.NextAction {
case resumeProducer(continuation: Swift.UnsafeContinuation<(), Swift.Never>?, result: Swift.Result)
case suspend
}
enum AsyncAlgorithmsInternal.ChannelStateMachine.NextCancelledAction {
case resumeConsumer(continuation: Swift.UnsafeContinuation?)
case none
}
enum AsyncAlgorithmsInternal.ChannelStateMachine.NextSuspendedAction {
case resumeConsumer(element: A?)
case resumeConsumerWithError(error: any Swift.Error)
case resumeProducerAndConsumer(continuation: Swift.UnsafeContinuation<(), Swift.Never>?, element: A?)
}
enum AsyncAlgorithmsInternal.ChannelStateMachine.SendAction {
case resumeConsumer(continuation: Swift.UnsafeContinuation?)
case suspend
}
enum AsyncAlgorithmsInternal.ChannelStateMachine.SendCancelledAction {
case resumeProducer(continuation: Swift.UnsafeContinuation<(), Swift.Never>?)
case none
}
enum AsyncAlgorithmsInternal.ChannelStateMachine.SendSuspendedAction {
case resumeProducerAndConsumer(continuation: Swift.UnsafeContinuation?)
case resumeProducer
}
enum AsyncAlgorithmsInternal.ChannelStateMachine.State {
case channeling(suspendedProducers: CollectionsInternal.OrderedSet.SuspendedProducer>, cancelledProducers: Swift.Set.SuspendedProducer>, suspendedConsumers: CollectionsInternal.OrderedSet.SuspendedConsumer>, cancelledConsumers: Swift.Set.SuspendedConsumer>)
case terminated(AsyncAlgorithmsInternal.ChannelStateMachine.Termination)
}
enum AsyncAlgorithmsInternal.ChannelStateMachine.Termination {
case failed(any Swift.Error)
case finished
}
enum AsyncAlgorithmsInternal.CombineLatestStateMachine.CancelledAction {
case resumeDownstreamContinuationWithNilAndCancelTaskAndUpstreamContinuations(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
case cancelTaskAndUpstreamContinuations(task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
}
enum AsyncAlgorithmsInternal.CombineLatestStateMachine.ChildTaskSuspendedAction {
case resumeContinuation(upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>)
case resumeContinuationWithError(upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>, error: any Swift.Error)
}
enum AsyncAlgorithmsInternal.CombineLatestStateMachine.ElementProducedAction {
case resumeContinuation(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, result: Swift.Result<(A.Element, B.Element, C.Element?)?, any Swift.Error>)
}
enum AsyncAlgorithmsInternal.CombineLatestStateMachine.IteratorDeinitializedAction {
case cancelTaskAndUpstreamContinuations(task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
}
enum AsyncAlgorithmsInternal.CombineLatestStateMachine.NextAction {
case startTask(A, B, C?)
case resumeUpstreamContinuations(upstreamContinuation: [Swift.UnsafeContinuation<(), any Swift.Error>])
case resumeContinuation(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, result: Swift.Result<(A.Element, B.Element, C.Element?)?, any Swift.Error>)
case resumeDownstreamContinuationWithNil(Swift.UnsafeContinuation, Swift.Never>)
}
enum AsyncAlgorithmsInternal.CombineLatestStateMachine.State {
struct Upstream {
var continuation: Swift.UnsafeContinuation<(), any Swift.Error>?
var element: A1?
var isFinished: Swift.Bool
}
case initial(base1: A, base2: B, base3: C?)
case waitingForDemand(task: Swift.Task<(), Swift.Never>, upstreams: (AsyncAlgorithmsInternal.CombineLatestStateMachine.State.Upstream, AsyncAlgorithmsInternal.CombineLatestStateMachine.State.Upstream, AsyncAlgorithmsInternal.CombineLatestStateMachine.State.Upstream), buffer: CollectionsInternal.Deque<(A.Element, B.Element, C.Element?)>)
case combining(task: Swift.Task<(), Swift.Never>, upstreams: (AsyncAlgorithmsInternal.CombineLatestStateMachine.State.Upstream, AsyncAlgorithmsInternal.CombineLatestStateMachine.State.Upstream, AsyncAlgorithmsInternal.CombineLatestStateMachine.State.Upstream), downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, buffer: CollectionsInternal.Deque<(A.Element, B.Element, C.Element?)>)
case upstreamsFinished(buffer: CollectionsInternal.Deque<(A.Element, B.Element, C.Element?)>)
case upstreamThrew(error: any Swift.Error)
case finished
case modifying
}
enum AsyncAlgorithmsInternal.CombineLatestStateMachine.UpstreamFinishedAction {
case cancelTaskAndUpstreamContinuations(task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
case resumeContinuationWithNilAndCancelTaskAndUpstreamContinuations(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
}
enum AsyncAlgorithmsInternal.CombineLatestStateMachine.UpstreamThrewAction {
case cancelTaskAndUpstreamContinuations(task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
case resumeContinuationWithErrorAndCancelTaskAndUpstreamContinuations(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, error: any Swift.Error, task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
}
enum AsyncAlgorithmsInternal.DebounceStateMachine.CancelledAction {
case resumeDownstreamContinuationWithNilAndCancelTaskAndUpstreamAndClockContinuation(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, task: Swift.Task<(), Swift.Never>, upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>?, clockContinuation: Swift.UnsafeContinuation?)
}
enum AsyncAlgorithmsInternal.DebounceStateMachine.ClockSleepFinishedAction {
case resumeDownstreamContinuation(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, element: A.Element)
}
enum AsyncAlgorithmsInternal.DebounceStateMachine.ClockTaskSuspendedAction {
case resumeContinuation(clockContinuation: Swift.UnsafeContinuation, deadline: B.Instant)
case resumeContinuationWithError(clockContinuation: Swift.UnsafeContinuation, error: any Swift.Error)
}
enum AsyncAlgorithmsInternal.DebounceStateMachine.ElementProducedAction {
case resumeClockContinuation(clockContinuation: Swift.UnsafeContinuation?, deadline: B.Instant)
}
enum AsyncAlgorithmsInternal.DebounceStateMachine.IteratorDeinitializedAction {
case cancelTaskAndUpstreamAndClockContinuations(task: Swift.Task<(), Swift.Never>, upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>?, clockContinuation: Swift.UnsafeContinuation?)
}
enum AsyncAlgorithmsInternal.DebounceStateMachine.NextAction {
case startTask(A)
case resumeUpstreamContinuation(upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>?)
case resumeUpstreamAndClockContinuation(upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>?, clockContinuation: Swift.UnsafeContinuation?, deadline: B.Instant)
case resumeDownstreamContinuationWithNil(Swift.UnsafeContinuation, Swift.Never>)
case resumeDownstreamContinuationWithError(Swift.UnsafeContinuation, Swift.Never>, any Swift.Error)
}
enum AsyncAlgorithmsInternal.DebounceStateMachine.State {
case initial(base: A)
case waitingForDemand(task: Swift.Task<(), Swift.Never>, upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>?, clockContinuation: Swift.UnsafeContinuation?, bufferedElement: (element: A.Element, deadline: B.Instant)?)
case demandSignalled(task: Swift.Task<(), Swift.Never>, clockContinuation: Swift.UnsafeContinuation?, downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>)
case debouncing(task: Swift.Task<(), Swift.Never>, upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>?, downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, currentElement: (element: A.Element, deadline: B.Instant))
case upstreamFailure(error: any Swift.Error)
case finished
}
enum AsyncAlgorithmsInternal.DebounceStateMachine.UpstreamFinishedAction {
case cancelTaskAndClockContinuation(task: Swift.Task<(), Swift.Never>, clockContinuation: Swift.UnsafeContinuation?)
case resumeContinuationWithNilAndCancelTaskAndUpstreamAndClockContinuation(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, task: Swift.Task<(), Swift.Never>, upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>?, clockContinuation: Swift.UnsafeContinuation?)
case resumeContinuationWithElementAndCancelTaskAndUpstreamAndClockContinuation(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, element: A.Element, task: Swift.Task<(), Swift.Never>, upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>?, clockContinuation: Swift.UnsafeContinuation?)
}
enum AsyncAlgorithmsInternal.DebounceStateMachine.UpstreamTaskSuspendedAction {
case resumeContinuation(upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>)
case resumeContinuationWithError(upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>, error: any Swift.Error)
}
enum AsyncAlgorithmsInternal.DebounceStateMachine.UpstreamThrewAction {
case cancelTaskAndClockContinuation(task: Swift.Task<(), Swift.Never>, clockContinuation: Swift.UnsafeContinuation?)
case resumeContinuationWithErrorAndCancelTaskAndUpstreamContinuation(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, error: any Swift.Error, task: Swift.Task<(), Swift.Never>, upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>?, clockContinuation: Swift.UnsafeContinuation?)
}
enum AsyncAlgorithmsInternal.MergeStateMachine.CancelledAction {
case resumeDownstreamContinuationWithNilAndCancelTaskAndUpstreamContinuations(downstreamContinuation: Swift.UnsafeContinuation, task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
case cancelTaskAndUpstreamContinuations(task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
case none
}
enum AsyncAlgorithmsInternal.MergeStateMachine.ChildTaskSuspendedAction {
case resumeContinuation(upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>)
case resumeContinuationWithError(upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>, error: any Swift.Error)
case none
}
enum AsyncAlgorithmsInternal.MergeStateMachine.ElementProducedAction {
case resumeContinuation(downstreamContinuation: Swift.UnsafeContinuation, element: A.Element)
case none
}
enum AsyncAlgorithmsInternal.MergeStateMachine.IteratorDeinitializedAction {
case cancelTaskAndUpstreamContinuations(task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
case none
}
enum AsyncAlgorithmsInternal.MergeStateMachine.NextAction {
case startTaskAndSuspendDownstreamTask(A, B, C?)
case returnElement(Swift.Result)
case throwError(any Swift.Error)
case returnNil
case suspendDownstreamTask
}
enum AsyncAlgorithmsInternal.MergeStateMachine.State {
case initial(base1: A, base2: B, base3: C?)
case merging(task: Swift.Task<(), Swift.Never>, buffer: CollectionsInternal.Deque, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>], upstreamsFinished: Swift.Int, downstreamContinuation: Swift.UnsafeContinuation?)
case upstreamFailure(buffer: CollectionsInternal.Deque, error: any Swift.Error)
case finished
case modifying
}
enum AsyncAlgorithmsInternal.MergeStateMachine.UpstreamFinishedAction {
case cancelTaskAndUpstreamContinuations(task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
case resumeContinuationWithNilAndCancelTaskAndUpstreamContinuations(downstreamContinuation: Swift.UnsafeContinuation, task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
case none
}
enum AsyncAlgorithmsInternal.MergeStateMachine.UpstreamThrewAction {
case cancelTaskAndUpstreamContinuations(task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
case resumeContinuationWithErrorAndCancelTaskAndUpstreamContinuations(downstreamContinuation: Swift.UnsafeContinuation, error: any Swift.Error, task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
case none
}
enum AsyncAlgorithmsInternal.UnboundedBufferStateMachine.ElementProducedAction {
case resumeConsumer(continuation: Swift.UnsafeContinuation?, Swift.Never>, result: Swift.Result)
case none
}
enum AsyncAlgorithmsInternal.UnboundedBufferStateMachine.FinishAction {
case resumeConsumer(continuation: Swift.UnsafeContinuation?, Swift.Never>?)
case none
}
enum AsyncAlgorithmsInternal.UnboundedBufferStateMachine.InterruptedAction {
case resumeConsumer(task: Swift.Task<(), Swift.Never>, continuation: Swift.UnsafeContinuation?, Swift.Never>?)
case none
}
enum AsyncAlgorithmsInternal.UnboundedBufferStateMachine.NextAction {
case startTask(base: A)
case returnResult(Swift.Result?)
case suspend
}
enum AsyncAlgorithmsInternal.UnboundedBufferStateMachine.NextSuspendedAction {
case resumeConsumer(Swift.Result?)
case none
}
enum AsyncAlgorithmsInternal.UnboundedBufferStateMachine.Policy {
case bufferingNewest(Swift.Int)
case bufferingOldest(Swift.Int)
case unlimited
}
enum AsyncAlgorithmsInternal.UnboundedBufferStateMachine.State {
case initial(base: A)
case buffering(task: Swift.Task<(), Swift.Never>, buffer: CollectionsInternal.Deque, any Swift.Error>>, suspendedConsumer: Swift.UnsafeContinuation?, Swift.Never>?)
case finished(buffer: CollectionsInternal.Deque, any Swift.Error>>)
case modifying
}
enum AsyncAlgorithmsInternal.ZipStateMachine.CancelledAction {
case resumeDownstreamContinuationWithNilAndCancelTaskAndUpstreamContinuations(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
case cancelTaskAndUpstreamContinuations(task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
}
enum AsyncAlgorithmsInternal.ZipStateMachine.ChildTaskSuspendedAction {
case resumeContinuation(upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>)
case resumeContinuationWithError(upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>, error: any Swift.Error)
}
enum AsyncAlgorithmsInternal.ZipStateMachine.ElementProducedAction {
case resumeContinuation(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, result: Swift.Result<(A.Element, B.Element, C.Element?)?, any Swift.Error>)
}
enum AsyncAlgorithmsInternal.ZipStateMachine.IteratorDeinitializedAction {
case cancelTaskAndUpstreamContinuations(task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
}
enum AsyncAlgorithmsInternal.ZipStateMachine.NextAction {
case startTask(A, B, C?)
case resumeUpstreamContinuations(upstreamContinuation: [Swift.UnsafeContinuation<(), any Swift.Error>])
case resumeDownstreamContinuationWithNil(Swift.UnsafeContinuation, Swift.Never>)
}
enum AsyncAlgorithmsInternal.ZipStateMachine.State {
struct Upstream {
var continuation: Swift.UnsafeContinuation<(), any Swift.Error>?
var element: A1?
}
case initial(base1: A, base2: B, base3: C?)
case waitingForDemand(task: Swift.Task<(), Swift.Never>, upstreams: (AsyncAlgorithmsInternal.ZipStateMachine.State.Upstream, AsyncAlgorithmsInternal.ZipStateMachine.State.Upstream, AsyncAlgorithmsInternal.ZipStateMachine.State.Upstream))
case zipping(task: Swift.Task<(), Swift.Never>, upstreams: (AsyncAlgorithmsInternal.ZipStateMachine.State.Upstream, AsyncAlgorithmsInternal.ZipStateMachine.State.Upstream, AsyncAlgorithmsInternal.ZipStateMachine.State.Upstream), downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>)
case finished
case modifying
}
enum AsyncAlgorithmsInternal.ZipStateMachine.UpstreamFinishedAction {
case resumeContinuationWithNilAndCancelTaskAndUpstreamContinuations(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
}
enum AsyncAlgorithmsInternal.ZipStateMachine.UpstreamThrewAction {
case resumeContinuationWithErrorAndCancelTaskAndUpstreamContinuations(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, error: any Swift.Error, task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
}
extension AsyncAlgorithmsInternal.AsyncAdjacentPairsSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncAdjacentPairsSequence.Iterator
typealias Element = (A.Element, A.Element)
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncAdjacentPairsSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = (A.Element, A.Element)
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncBufferSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncBufferSequence.Iterator
typealias Element = A.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncBufferSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = A.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncBufferedByteIterator: Swift.AsyncIteratorProtocol {
typealias Element = Swift.UInt8
typealias Failure = any Swift.Error
}
extension AsyncAlgorithmsInternal.AsyncChain2Sequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncChain2Sequence.Iterator
typealias Element = A.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncChain2Sequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = A.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncChain3Sequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncChain3Sequence.Iterator
typealias Element = A.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncChain3Sequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = A.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncChannel: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncChannel.Iterator
typealias Element = A
typealias Failure = Swift.Never
}
extension AsyncAlgorithmsInternal.AsyncChannel.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = A
typealias Failure = Swift.Never
}
extension AsyncAlgorithmsInternal.AsyncChunkedByGroupSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncChunkedByGroupSequence.Iterator
typealias Element = B
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncChunkedByGroupSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = B
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncChunkedOnProjectionSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncChunkedOnProjectionSequence.Iterator
typealias Element = (B, C)
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncChunkedOnProjectionSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = (B, C)
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncChunksOfCountOrSignalSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncChunksOfCountOrSignalSequence.Iterator
typealias Element = B
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncChunksOfCountOrSignalSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = B
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncChunksOfCountSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncChunksOfCountSequence.Iterator
typealias Element = B
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncChunksOfCountSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = B
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncCombineLatest2Sequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncCombineLatest2Sequence.Iterator
typealias Element = (A.Element, B.Element)
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncCombineLatest2Sequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = (A.Element, B.Element)
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncCombineLatest3Sequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncCombineLatest3Sequence.Iterator
typealias Element = (A.Element, B.Element, C.Element)
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncCombineLatest3Sequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = (A.Element, B.Element, C.Element)
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncCompactedSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncCompactedSequence.Iterator
typealias Element = B
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncCompactedSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = B
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncDebounceSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncDebounceSequence.Iterator
typealias Element = A.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncDebounceSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = A.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncExclusiveReductionsSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncExclusiveReductionsSequence.Iterator
typealias Element = B
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncExclusiveReductionsSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = B
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncInclusiveReductionsSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncInclusiveReductionsSequence.Iterator
typealias Element = A.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncInclusiveReductionsSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = A.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncInterspersedSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncInterspersedSequence.Iterator
typealias Element = A.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncInterspersedSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = A.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator
typealias Element = A.Element.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = B.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncJoinedSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncJoinedSequence.Iterator
typealias Element = A.Element.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncJoinedSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = A.Element.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncMerge2Sequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncMerge2Sequence.Iterator
typealias Element = A.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncMerge2Sequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = A.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncMerge3Sequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncMerge3Sequence.Iterator
typealias Element = A.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncMerge3Sequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = A.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncRemoveDuplicatesSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncRemoveDuplicatesSequence.Iterator
typealias Element = A.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncRemoveDuplicatesSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = A.Element
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncSyncSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncSyncSequence.Iterator
typealias Element = A.Element
typealias Failure = Swift.Never
}
extension AsyncAlgorithmsInternal.AsyncSyncSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = A.Element
typealias Failure = Swift.Never
}
extension AsyncAlgorithmsInternal.AsyncThrowingChannel: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncThrowingChannel.Iterator
typealias Element = A
typealias Failure = any Swift.Error
}
extension AsyncAlgorithmsInternal.AsyncThrowingChannel.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = A
typealias Failure = any Swift.Error
}
extension AsyncAlgorithmsInternal.AsyncThrowingExclusiveReductionsSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncThrowingExclusiveReductionsSequence.Iterator
typealias Element = B
typealias Failure = any Swift.Error
}
extension AsyncAlgorithmsInternal.AsyncThrowingExclusiveReductionsSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = B
typealias Failure = any Swift.Error
}
extension AsyncAlgorithmsInternal.AsyncThrowingInclusiveReductionsSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncThrowingInclusiveReductionsSequence.Iterator
typealias Element = A.Element
typealias Failure = any Swift.Error
}
extension AsyncAlgorithmsInternal.AsyncThrowingInclusiveReductionsSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = A.Element
typealias Failure = any Swift.Error
}
extension AsyncAlgorithmsInternal.AsyncThrowingInterspersedSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncThrowingInterspersedSequence.Iterator
typealias Element = A.Element
typealias Failure = any Swift.Error
}
extension AsyncAlgorithmsInternal.AsyncThrowingInterspersedSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = A.Element
typealias Failure = any Swift.Error
}
extension AsyncAlgorithmsInternal.AsyncThrowingRemoveDuplicatesSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncThrowingRemoveDuplicatesSequence.Iterator
typealias Element = A.Element
typealias Failure = any Swift.Error
}
extension AsyncAlgorithmsInternal.AsyncThrowingRemoveDuplicatesSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = A.Element
typealias Failure = any Swift.Error
}
extension AsyncAlgorithmsInternal.AsyncTimerSequence {
static func repeating(every: Swift.Duration, tolerance: Swift.Duration?) -> AsyncAlgorithmsInternal.AsyncTimerSequence where A == Swift.SuspendingClock
}
extension AsyncAlgorithmsInternal.AsyncTimerSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncTimerSequence.Iterator
typealias Element = A.Instant
typealias Failure = Swift.Never
}
extension AsyncAlgorithmsInternal.AsyncTimerSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = A.Instant
typealias Failure = Swift.Never
}
extension AsyncAlgorithmsInternal.AsyncZip2Sequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncZip2Sequence.Iterator
typealias Element = (A.Element, B.Element)
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncZip2Sequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = (A.Element, B.Element)
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncZip3Sequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal.AsyncZip3Sequence.Iterator
typealias Element = (A.Element, B.Element, C.Element)
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.AsyncZip3Sequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = (A.Element, B.Element, C.Element)
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal.BoundedBufferStateMachine.ProducerSuspendedAction: Swift.Hashable {}
extension AsyncAlgorithmsInternal.BoundedBufferStateMachine.ProducerSuspendedAction: Swift.Equatable {}
extension AsyncAlgorithmsInternal.ChannelStateMachine.SuspendedConsumer: Swift.Equatable {}
extension AsyncAlgorithmsInternal.ChannelStateMachine.SuspendedConsumer: Swift.Hashable {}
extension AsyncAlgorithmsInternal.ChannelStateMachine.SuspendedProducer: Swift.Equatable {}
extension AsyncAlgorithmsInternal.ChannelStateMachine.SuspendedProducer: Swift.Hashable {}
extension AsyncAlgorithmsInternal._AsyncThrottleSequence: Swift.AsyncSequence {
typealias AsyncIterator = AsyncAlgorithmsInternal._AsyncThrottleSequence.Iterator
typealias Element = C
typealias Failure = A.Failure
}
extension AsyncAlgorithmsInternal._AsyncThrottleSequence.Iterator: Swift.AsyncIteratorProtocol {
typealias Element = C
typealias Failure = A.Failure
}
extension Swift.AsyncSequence {
func reductions(into: A1, _: @escaping @Sendable (inout A1, Self.Element) async -> ()) -> AsyncAlgorithmsInternal.AsyncExclusiveReductionsSequence
func reductions(into: A1, _: @escaping @Sendable (inout A1, Self.Element) async throws -> ()) -> AsyncAlgorithmsInternal.AsyncThrowingExclusiveReductionsSequence
func reductions(_: A1, _: @escaping @Sendable (A1, Self.Element) async -> A1) -> AsyncAlgorithmsInternal.AsyncExclusiveReductionsSequence
func reductions(_: @escaping @Sendable (Self.Element, Self.Element) async -> Self.Element) -> AsyncAlgorithmsInternal.AsyncInclusiveReductionsSequence
func reductions(_: A1, _: @escaping @Sendable (A1, Self.Element) async throws -> A1) -> AsyncAlgorithmsInternal.AsyncThrowingExclusiveReductionsSequence
func reductions(_: @escaping @Sendable (Self.Element, Self.Element) async throws -> Self.Element) -> AsyncAlgorithmsInternal.AsyncThrowingInclusiveReductionsSequence
func interspersed(every: Swift.Int, with: Self.Element) -> AsyncAlgorithmsInternal.AsyncInterspersedSequence
func interspersed(every: Swift.Int, with: @escaping @Sendable () async -> Self.Element) -> AsyncAlgorithmsInternal.AsyncInterspersedSequence
func interspersed(every: Swift.Int, with: @escaping @Sendable () -> Self.Element) -> AsyncAlgorithmsInternal.AsyncInterspersedSequence
func interspersed(every: Swift.Int, with: @escaping @Sendable () async throws -> Self.Element) -> AsyncAlgorithmsInternal.AsyncThrowingInterspersedSequence
func interspersed(every: Swift.Int, with: @escaping @Sendable () throws -> Self.Element) -> AsyncAlgorithmsInternal.AsyncThrowingInterspersedSequence
func adjacentPairs() -> AsyncAlgorithmsInternal.AsyncAdjacentPairsSequence
func removeDuplicates(by: @escaping @Sendable (Self.Element, Self.Element) async throws -> Swift.Bool) -> AsyncAlgorithmsInternal.AsyncThrowingRemoveDuplicatesSequence
func removeDuplicates(by: @escaping @Sendable (Self.Element, Self.Element) async -> Swift.Bool) -> AsyncAlgorithmsInternal.AsyncRemoveDuplicatesSequence
func chunks(ofCount: Swift.Int, or: AsyncAlgorithmsInternal.AsyncTimerSequence, into: B1.Type) -> AsyncAlgorithmsInternal.AsyncChunksOfCountOrSignalSequence> where Self: Swift.Sendable, A1: Swift.Clock, B1: Swift.RangeReplaceableCollection, Self.Element: Swift.Sendable, Self.Element == B1.Element
func chunks(ofCount: Swift.Int, or: A1, into: B1.Type) -> AsyncAlgorithmsInternal.AsyncChunksOfCountOrSignalSequence where Self: Swift.Sendable, A1: Swift.Sendable, A1: Swift.AsyncSequence, B1: Swift.RangeReplaceableCollection, Self.Element: Swift.Sendable, Self.Element == B1.Element, A1.Element: Swift.Sendable
func chunks(ofCount: Swift.Int, or: AsyncAlgorithmsInternal.AsyncTimerSequence) -> AsyncAlgorithmsInternal.AsyncChunksOfCountOrSignalSequence> where Self: Swift.Sendable, A1: Swift.Clock, Self.Element: Swift.Sendable
func chunks(ofCount: Swift.Int, or: A1) -> AsyncAlgorithmsInternal.AsyncChunksOfCountOrSignalSequence where Self: Swift.Sendable, A1: Swift.Sendable, A1: Swift.AsyncSequence, Self.Element: Swift.Sendable, A1.Element: Swift.Sendable
func chunks(ofCount: Swift.Int, into: A1.Type) -> AsyncAlgorithmsInternal.AsyncChunksOfCountSequence where A1: Swift.RangeReplaceableCollection, Self.Element == A1.Element
func chunks(ofCount: Swift.Int) -> AsyncAlgorithmsInternal.AsyncChunksOfCountSequence
func chunked(by: AsyncAlgorithmsInternal.AsyncTimerSequence, into: B1.Type) -> AsyncAlgorithmsInternal.AsyncChunksOfCountOrSignalSequence> where Self: Swift.Sendable, A1: Swift.Clock, B1: Swift.RangeReplaceableCollection, Self.Element: Swift.Sendable, Self.Element == B1.Element
func chunked(by: A1, into: B1.Type) -> AsyncAlgorithmsInternal.AsyncChunksOfCountOrSignalSequence where Self: Swift.Sendable, A1: Swift.Sendable, A1: Swift.AsyncSequence, B1: Swift.RangeReplaceableCollection, Self.Element: Swift.Sendable, Self.Element == B1.Element, A1.Element: Swift.Sendable
func chunked(by: @escaping @Sendable (Self.Element, Self.Element) -> Swift.Bool) -> AsyncAlgorithmsInternal.AsyncChunkedByGroupSequence
func chunked(by: AsyncAlgorithmsInternal.AsyncTimerSequence) -> AsyncAlgorithmsInternal.AsyncChunksOfCountOrSignalSequence> where Self: Swift.Sendable, A1: Swift.Clock, Self.Element: Swift.Sendable
func chunked(by: A1) -> AsyncAlgorithmsInternal.AsyncChunksOfCountOrSignalSequence where Self: Swift.Sendable, A1: Swift.Sendable, A1: Swift.AsyncSequence, Self.Element: Swift.Sendable, A1.Element: Swift.Sendable
func chunked(on: @escaping @Sendable (_: Self.Element) -> A1) -> AsyncAlgorithmsInternal.AsyncChunkedOnProjectionSequence where A1: Swift.Equatable
func chunked(into: A1.Type, by: @escaping @Sendable (Self.Element, Self.Element) -> Swift.Bool) -> AsyncAlgorithmsInternal.AsyncChunkedByGroupSequence where A1: Swift.RangeReplaceableCollection, Self.Element == A1.Element
func chunked(into: B1.Type, on: @escaping @Sendable (_: Self.Element) -> A1) -> AsyncAlgorithmsInternal.AsyncChunkedOnProjectionSequence where A1: Swift.Equatable, B1: Swift.RangeReplaceableCollection, Self.Element == B1.Element
func debounce(for: A1.Duration, tolerance: A1.Duration?, clock: A1) -> AsyncAlgorithmsInternal.AsyncDebounceSequence where Self: Swift.Sendable, A1: Swift.Clock, Self.Element: Swift.Sendable
func debounce(for: Swift.Duration, tolerance: Swift.Duration?) -> AsyncAlgorithmsInternal.AsyncDebounceSequence where Self: Swift.Sendable, Self.Element: Swift.Sendable
func _throttle(for: A1.Duration, clock: A1, latest: Swift.Bool) -> AsyncAlgorithmsInternal._AsyncThrottleSequence where A1: Swift.Clock
func _throttle(for: A1.Duration, clock: A1, reducing: @escaping @Sendable (B1?, Self.Element) async -> B1) -> AsyncAlgorithmsInternal._AsyncThrottleSequence where A1: Swift.Clock
func _throttle(for: Swift.Duration, latest: Swift.Bool) -> AsyncAlgorithmsInternal._AsyncThrottleSequence
func _throttle(for: Swift.Duration, reducing: @escaping @Sendable (A1?, Self.Element) async -> A1) -> AsyncAlgorithmsInternal._AsyncThrottleSequence
func compacted() -> AsyncAlgorithmsInternal.AsyncCompactedSequence where Self.Element == A1?
func removeDuplicates() -> AsyncAlgorithmsInternal.AsyncRemoveDuplicatesSequence where Self.Element: Swift.Equatable
func joined(separator: A1) -> AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence where Self.Element: Swift.AsyncSequence
func joined() -> AsyncAlgorithmsInternal.AsyncJoinedSequence where Self.Element: Swift.AsyncSequence
func buffer(policy: AsyncAlgorithmsInternal.AsyncBufferSequencePolicy) -> AsyncAlgorithmsInternal.AsyncBufferSequence where Self: Swift.Sendable
}
extension Swift.Dictionary {
init(uniqueKeysWithValues: A1) async throws where A1: Swift.AsyncSequence, A1.Element == (A, B)
init(grouping: A1, by: (_: A1.Element) async throws -> A) async throws where B == [A1.Element], A1: Swift.AsyncSequence
init(_: A1, uniquingKeysWith: (B, B) async throws -> B) async throws where A1: Swift.AsyncSequence, A1.Element == (A, B)
}
extension Swift.RangeReplaceableCollection {
init(_: A1) async throws where A1: Swift.AsyncSequence, Self.Element == A1.Element
}
extension Swift.Result: AsyncAlgorithmsInternal._ErrorMechanism {
typealias Output = A
}
extension Swift.Sequence {
var async: AsyncAlgorithmsInternal.AsyncSyncSequence {
get
}
}
extension Swift.SetAlgebra {
init(_: A1) async throws where A1: Swift.AsyncSequence, Self.Element == A1.Element
}
protocol _ErrorMechanism {
associatedtype Output
// Kind: AssociatedTypeAccessFunction, isAsync: false, isInstance: false
// Kind: Method, isAsync: false, isInstance: true
}
struct AsyncAdjacentPairsSequence where A: Swift.AsyncSequence {
struct Iterator {
var base: A.AsyncIterator
var previousElement: A.Element?
init(_: A.AsyncIterator)
func next() async throws -> (A.Element, A.Element)?
}
let base: A
init(_: A)
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncAdjacentPairsSequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncAdjacentPairsSequence.Iterator {
var base: A.AsyncIterator
var previousElement: A.Element?
init(_: A.AsyncIterator)
func next() async throws -> (A.Element, A.Element)?
}
struct AsyncBufferSequence where A: Swift.AsyncSequence {
struct Iterator {
var storageType: AsyncAlgorithmsInternal.AsyncBufferSequence.StorageType
func next() async throws -> A.Element?
}
enum StorageType {
case transparent(A.AsyncIterator)
case bounded(storage: AsyncAlgorithmsInternal.BoundedBufferStorage)
case unbounded(storage: AsyncAlgorithmsInternal.UnboundedBufferStorage)
}
let base: A
let policy: AsyncAlgorithmsInternal.AsyncBufferSequencePolicy
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncBufferSequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncBufferSequence.Iterator {
var storageType: AsyncAlgorithmsInternal.AsyncBufferSequence.StorageType
func next() async throws -> A.Element?
}
struct AsyncBufferSequencePolicy {
enum _Policy {
case bounded(Swift.Int)
case bufferingNewest(Swift.Int)
case bufferingOldest(Swift.Int)
case unbounded
}
let policy: AsyncAlgorithmsInternal.AsyncBufferSequencePolicy._Policy
static var unbounded: AsyncAlgorithmsInternal.AsyncBufferSequencePolicy {
get
}
static func bufferingLatest(_: Swift.Int) -> AsyncAlgorithmsInternal.AsyncBufferSequencePolicy
static func bufferingOldest(_: Swift.Int) -> AsyncAlgorithmsInternal.AsyncBufferSequencePolicy
static func bounded(_: Swift.Int) -> AsyncAlgorithmsInternal.AsyncBufferSequencePolicy
}
struct AsyncBufferedByteIterator {
var buffer: AsyncAlgorithmsInternal._AsyncBytesBuffer
init(capacity: Swift.Int, readFunction: @escaping @Sendable (_: Swift.UnsafeMutableRawBufferPointer) async throws -> Swift.Int)
func next() async throws -> Swift.UInt8?
}
struct AsyncChain2Sequence where A: Swift.AsyncSequence, B: Swift.AsyncSequence, A.Element == B.Element {
struct Iterator {
var base1: A.AsyncIterator?
var base2: B.AsyncIterator?
init(_: A.AsyncIterator, _: B.AsyncIterator)
func next() async throws -> A.Element?
}
let base1: A
let base2: B
init(_: A, _: B)
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncChain2Sequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncChain2Sequence.Iterator {
var base1: A.AsyncIterator?
var base2: B.AsyncIterator?
init(_: A.AsyncIterator, _: B.AsyncIterator)
func next() async throws -> A.Element?
}
struct AsyncChain3Sequence where A: Swift.AsyncSequence, B: Swift.AsyncSequence, C: Swift.AsyncSequence, A.Element == B.Element, B.Element == C.Element {
struct Iterator {
var base1: A.AsyncIterator?
var base2: B.AsyncIterator?
var base3: C.AsyncIterator?
init(_: A.AsyncIterator, _: B.AsyncIterator, _: C.AsyncIterator)
func next() async throws -> A.Element?
}
let base1: A
let base2: B
let base3: C
init(_: A, _: B, _: C)
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncChain3Sequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncChain3Sequence.Iterator {
var base1: A.AsyncIterator?
var base2: B.AsyncIterator?
var base3: C.AsyncIterator?
init(_: A.AsyncIterator, _: B.AsyncIterator, _: C.AsyncIterator)
func next() async throws -> A.Element?
}
struct AsyncAlgorithmsInternal.AsyncChannel.Iterator {
let storage: AsyncAlgorithmsInternal.ChannelStorage
func next() async -> A?
}
struct AsyncChunkedByGroupSequence where A: Swift.AsyncSequence, B: Swift.RangeReplaceableCollection, A.Element == B.Element {
struct Iterator {
var base: A.AsyncIterator
let grouping: @Sendable (A.Element, A.Element) -> Swift.Bool
var hangingNext: A.Element?
init(base: A.AsyncIterator, grouping: @escaping @Sendable (A.Element, A.Element) -> Swift.Bool)
func next() async throws -> B?
}
let base: A
let grouping: @Sendable (A.Element, A.Element) -> Swift.Bool
init(_: A, grouping: @escaping @Sendable (A.Element, A.Element) -> Swift.Bool)
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncChunkedByGroupSequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncChunkedByGroupSequence.Iterator {
var base: A.AsyncIterator
let grouping: @Sendable (A.Element, A.Element) -> Swift.Bool
var hangingNext: A.Element?
init(base: A.AsyncIterator, grouping: @escaping @Sendable (A.Element, A.Element) -> Swift.Bool)
func next() async throws -> B?
}
struct AsyncChunkedOnProjectionSequence where A: Swift.AsyncSequence, B: Swift.Equatable, C: Swift.RangeReplaceableCollection, A.Element == C.Element {
struct Iterator {
var base: A.AsyncIterator
let projection: @Sendable (_: A.Element) -> B
var hangingNext: (B, A.Element)?
init(base: A.AsyncIterator, projection: @escaping @Sendable (_: A.Element) -> B)
func next() async throws -> (B, C)?
}
let base: A
let projection: @Sendable (_: A.Element) -> B
init(_: A, projection: @escaping @Sendable (_: A.Element) -> B)
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncChunkedOnProjectionSequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncChunkedOnProjectionSequence.Iterator {
var base: A.AsyncIterator
let projection: @Sendable (_: A.Element) -> B
var hangingNext: (B, A.Element)?
init(base: A.AsyncIterator, projection: @escaping @Sendable (_: A.Element) -> B)
func next() async throws -> (B, C)?
}
struct AsyncChunksOfCountOrSignalSequence where A: Swift.AsyncSequence, B: Swift.RangeReplaceableCollection, C: Swift.AsyncSequence, A.Element == B.Element {
struct Iterator {
let count: Swift.Int?
var iterator: AsyncAlgorithmsInternal.AsyncMerge2Sequence.Either>, AsyncAlgorithmsInternal.AsyncSyncSequence<[AsyncAlgorithmsInternal.AsyncChunksOfCountOrSignalSequence.Either]>>, Swift.AsyncMapSequence.Either>>.Iterator
var terminated: Swift.Bool
func next() async throws -> B?
}
enum Either {
case element(A.Element)
case terminal
case signal
}
let base: A
let signal: C
let count: Swift.Int?
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncChunksOfCountOrSignalSequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncChunksOfCountOrSignalSequence.Iterator {
let count: Swift.Int?
var iterator: AsyncAlgorithmsInternal.AsyncMerge2Sequence.Either>, AsyncAlgorithmsInternal.AsyncSyncSequence<[AsyncAlgorithmsInternal.AsyncChunksOfCountOrSignalSequence.Either]>>, Swift.AsyncMapSequence.Either>>.Iterator
var terminated: Swift.Bool
func next() async throws -> B?
}
struct AsyncChunksOfCountSequence where A: Swift.AsyncSequence, B: Swift.RangeReplaceableCollection, A.Element == B.Element {
struct Iterator {
var base: A.AsyncIterator
let count: Swift.Int
init(base: A.AsyncIterator, count: Swift.Int)
func next() async throws -> B?
}
let base: A
let count: Swift.Int
init(_: A, count: Swift.Int)
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncChunksOfCountSequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncChunksOfCountSequence.Iterator {
var base: A.AsyncIterator
let count: Swift.Int
init(base: A.AsyncIterator, count: Swift.Int)
func next() async throws -> B?
}
struct AsyncCombineLatest2Sequence where A: Swift.AsyncSequence, B: Swift.AsyncSequence {
struct Iterator {
class InternalClass {
let storage: AsyncAlgorithmsInternal.CombineLatestStorage
}
let internalClass: AsyncAlgorithmsInternal.AsyncCombineLatest2Sequence.Iterator.InternalClass
func next() async throws -> (A.Element, B.Element)?
}
let base1: A
let base2: B
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncCombineLatest2Sequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncCombineLatest2Sequence.Iterator {
class InternalClass {
let storage: AsyncAlgorithmsInternal.CombineLatestStorage
}
let internalClass: AsyncAlgorithmsInternal.AsyncCombineLatest2Sequence.Iterator.InternalClass
func next() async throws -> (A.Element, B.Element)?
}
struct AsyncCombineLatest3Sequence where A: Swift.AsyncSequence, B: Swift.AsyncSequence, C: Swift.AsyncSequence {
struct Iterator {
class InternalClass {
let storage: AsyncAlgorithmsInternal.CombineLatestStorage
}
let internalClass: AsyncAlgorithmsInternal.AsyncCombineLatest3Sequence.Iterator.InternalClass
func next() async throws -> (A.Element, B.Element, C.Element)?
}
let base1: A
let base2: B
let base3: C
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncCombineLatest3Sequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncCombineLatest3Sequence.Iterator {
class InternalClass {
let storage: AsyncAlgorithmsInternal.CombineLatestStorage
}
let internalClass: AsyncAlgorithmsInternal.AsyncCombineLatest3Sequence.Iterator.InternalClass
func next() async throws -> (A.Element, B.Element, C.Element)?
}
struct AsyncCompactedSequence where A: Swift.AsyncSequence, A.Element == B? {
struct Iterator {
var base: A.AsyncIterator
init(_: A.AsyncIterator)
func next() async throws -> B?
}
let base: A
init(_: A)
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncCompactedSequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncCompactedSequence.Iterator {
var base: A.AsyncIterator
init(_: A.AsyncIterator)
func next() async throws -> B?
}
struct AsyncDebounceSequence where A: Swift.AsyncSequence, B: Swift.Clock {
struct Iterator {
class InternalClass {
let storage: AsyncAlgorithmsInternal.DebounceStorage
}
let internalClass: AsyncAlgorithmsInternal.AsyncDebounceSequence.Iterator.InternalClass
func next() async throws -> A.Element?
}
let base: A
let clock: B
let interval: B.Duration
let tolerance: B.Duration?
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncDebounceSequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncDebounceSequence.Iterator {
class InternalClass {
let storage: AsyncAlgorithmsInternal.DebounceStorage
}
let internalClass: AsyncAlgorithmsInternal.AsyncDebounceSequence.Iterator.InternalClass
func next() async throws -> A.Element?
}
struct AsyncExclusiveReductionsSequence where A: Swift.AsyncSequence {
struct Iterator {
var iterator: A.AsyncIterator
var current: B?
let transform: @Sendable (inout B, A.Element) async -> ()
init(_: A.AsyncIterator, initial: B, transform: @escaping @Sendable (inout B, A.Element) async -> ())
func next() async throws -> B?
}
let base: A
let initial: B
let transform: @Sendable (inout B, A.Element) async -> ()
init(_: A, initial: B, transform: @escaping @Sendable (inout B, A.Element) async -> ())
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncExclusiveReductionsSequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncExclusiveReductionsSequence.Iterator {
var iterator: A.AsyncIterator
var current: B?
let transform: @Sendable (inout B, A.Element) async -> ()
init(_: A.AsyncIterator, initial: B, transform: @escaping @Sendable (inout B, A.Element) async -> ())
func next() async throws -> B?
}
struct AsyncInclusiveReductionsSequence where A: Swift.AsyncSequence {
struct Iterator {
var iterator: A.AsyncIterator
var element: A.Element?
let transform: @Sendable (A.Element, A.Element) async -> A.Element
init(_: A.AsyncIterator, transform: @escaping @Sendable (A.Element, A.Element) async -> A.Element)
func next() async throws -> A.Element?
}
let base: A
let transform: @Sendable (A.Element, A.Element) async -> A.Element
init(_: A, transform: @escaping @Sendable (A.Element, A.Element) async -> A.Element)
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncInclusiveReductionsSequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncInclusiveReductionsSequence.Iterator {
var iterator: A.AsyncIterator
var element: A.Element?
let transform: @Sendable (A.Element, A.Element) async -> A.Element
init(_: A.AsyncIterator, transform: @escaping @Sendable (A.Element, A.Element) async -> A.Element)
func next() async throws -> A.Element?
}
struct AsyncInterspersedSequence where A: Swift.AsyncSequence {
enum Separator {
case element(A.Element)
case syncClosure(@Sendable () -> A.Element)
case asyncClosure(@Sendable () async -> A.Element)
}
struct Iterator {
enum State {
case start(A.Element?)
case element(Swift.Int)
case separator
case finished
}
var iterator: A.AsyncIterator
let separator: AsyncAlgorithmsInternal.AsyncInterspersedSequence.Separator
let every: Swift.Int
var state: AsyncAlgorithmsInternal.AsyncInterspersedSequence.Iterator.State
init(_: A.AsyncIterator, every: Swift.Int, separator: AsyncAlgorithmsInternal.AsyncInterspersedSequence.Separator)
func next() async throws -> A.Element?
}
let base: A
let separator: AsyncAlgorithmsInternal.AsyncInterspersedSequence.Separator
let every: Swift.Int
init(_: A, every: Swift.Int, separator: A.Element)
init(_: A, every: Swift.Int, separator: @escaping @Sendable () async -> A.Element)
init(_: A, every: Swift.Int, separator: @escaping @Sendable () -> A.Element)
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncInterspersedSequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncInterspersedSequence.Iterator {
enum State {
case start(A.Element?)
case element(Swift.Int)
case separator
case finished
}
var iterator: A.AsyncIterator
let separator: AsyncAlgorithmsInternal.AsyncInterspersedSequence.Separator
let every: Swift.Int
var state: AsyncAlgorithmsInternal.AsyncInterspersedSequence.Iterator.State
init(_: A.AsyncIterator, every: Swift.Int, separator: AsyncAlgorithmsInternal.AsyncInterspersedSequence.Separator)
func next() async throws -> A.Element?
}
struct AsyncJoinedBySeparatorSequence where A: Swift.AsyncSequence, B: Swift.AsyncSequence, A.Element: Swift.AsyncSequence, B.Element == A.Element.Element {
struct Iterator {
enum State {
enum SeparatorState {
case initial(B)
case partialAsync(B.AsyncIterator, Swift.ContiguousArray)
case cached(Swift.ContiguousArray)
case partialCached(Swift.IndexingIterator>, Swift.ContiguousArray)
func startSeparator() -> AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator.State.SeparatorState
func next() async throws -> (B.Element?, AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator.State.SeparatorState)
}
case initial(A.AsyncIterator, B)
case sequence(A.AsyncIterator, A.Element.AsyncIterator, AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator.State.SeparatorState)
case separator(A.AsyncIterator, AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator.State.SeparatorState, A.Element)
case terminal
}
var state: AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator.State
init(_: A.AsyncIterator, separator: B)
func next() async throws -> B.Element?
}
let base: A
let separator: B
init(_: A, separator: B)
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator {
enum State {
enum SeparatorState {
case initial(B)
case partialAsync(B.AsyncIterator, Swift.ContiguousArray)
case cached(Swift.ContiguousArray)
case partialCached(Swift.IndexingIterator>, Swift.ContiguousArray)
func startSeparator() -> AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator.State.SeparatorState
func next() async throws -> (B.Element?, AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator.State.SeparatorState)
}
case initial(A.AsyncIterator, B)
case sequence(A.AsyncIterator, A.Element.AsyncIterator, AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator.State.SeparatorState)
case separator(A.AsyncIterator, AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator.State.SeparatorState, A.Element)
case terminal
}
var state: AsyncAlgorithmsInternal.AsyncJoinedBySeparatorSequence.Iterator.State
init(_: A.AsyncIterator, separator: B)
func next() async throws -> B.Element?
}
struct AsyncJoinedSequence where A: Swift.AsyncSequence, A.Element: Swift.AsyncSequence {
struct Iterator {
enum State {
case initial(A.AsyncIterator)
case sequence(A.AsyncIterator, A.Element.AsyncIterator)
case terminal
}
var state: AsyncAlgorithmsInternal.AsyncJoinedSequence.Iterator.State
init(_: A.AsyncIterator)
func next() async throws -> A.Element.Element?
}
let base: A
init(_: A)
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncJoinedSequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncJoinedSequence.Iterator {
enum State {
case initial(A.AsyncIterator)
case sequence(A.AsyncIterator, A.Element.AsyncIterator)
case terminal
}
var state: AsyncAlgorithmsInternal.AsyncJoinedSequence.Iterator.State
init(_: A.AsyncIterator)
func next() async throws -> A.Element.Element?
}
struct AsyncMerge2Sequence where A: Swift.AsyncSequence, B: Swift.AsyncSequence, A.Element == B.Element {
struct Iterator {
class InternalClass {
let storage: AsyncAlgorithmsInternal.MergeStorage
}
let internalClass: AsyncAlgorithmsInternal.AsyncMerge2Sequence.Iterator.InternalClass
func next() async throws -> A.Element?
}
let base1: A
let base2: B
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncMerge2Sequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncMerge2Sequence.Iterator {
class InternalClass {
let storage: AsyncAlgorithmsInternal.MergeStorage
}
let internalClass: AsyncAlgorithmsInternal.AsyncMerge2Sequence.Iterator.InternalClass
func next() async throws -> A.Element?
}
struct AsyncMerge3Sequence where A: Swift.AsyncSequence, B: Swift.AsyncSequence, C: Swift.AsyncSequence, A.Element == B.Element, B.Element == C.Element {
struct Iterator {
class InternalClass {
let storage: AsyncAlgorithmsInternal.MergeStorage
}
let internalClass: AsyncAlgorithmsInternal.AsyncMerge3Sequence.Iterator.InternalClass
func next() async throws -> A.Element?
}
let base1: A
let base2: B
let base3: C
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncMerge3Sequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncMerge3Sequence.Iterator {
class InternalClass {
let storage: AsyncAlgorithmsInternal.MergeStorage
}
let internalClass: AsyncAlgorithmsInternal.AsyncMerge3Sequence.Iterator.InternalClass
func next() async throws -> A.Element?
}
struct AsyncRemoveDuplicatesSequence where A: Swift.AsyncSequence {
struct Iterator {
var iterator: A.AsyncIterator
let predicate: @Sendable (A.Element, A.Element) async -> Swift.Bool
var last: A.Element?
init(iterator: A.AsyncIterator, predicate: @escaping @Sendable (A.Element, A.Element) async -> Swift.Bool)
func next() async throws -> A.Element?
}
let base: A
let predicate: @Sendable (A.Element, A.Element) async -> Swift.Bool
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncRemoveDuplicatesSequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncRemoveDuplicatesSequence.Iterator {
var iterator: A.AsyncIterator
let predicate: @Sendable (A.Element, A.Element) async -> Swift.Bool
var last: A.Element?
init(iterator: A.AsyncIterator, predicate: @escaping @Sendable (A.Element, A.Element) async -> Swift.Bool)
func next() async throws -> A.Element?
}
struct AsyncSyncSequence where A: Swift.Sequence {
struct Iterator {
var iterator: A.Iterator?
init(_: A.Iterator)
func next() async -> A.Element?
}
let base: A
init(_: A)
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncSyncSequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncSyncSequence.Iterator {
var iterator: A.Iterator?
init(_: A.Iterator)
func next() async -> A.Element?
}
struct AsyncAlgorithmsInternal.AsyncThrowingChannel.Iterator {
let storage: AsyncAlgorithmsInternal.ChannelStorage
func next() async throws -> A?
}
struct AsyncThrowingExclusiveReductionsSequence where A: Swift.AsyncSequence {
struct 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?
}
let base: A
let initial: B
let transform: @Sendable (inout B, A.Element) async throws -> ()
init(_: A, initial: B, transform: @escaping @Sendable (inout B, A.Element) async throws -> ())
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncThrowingExclusiveReductionsSequence.Iterator
}
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?
}
struct AsyncThrowingInclusiveReductionsSequence where A: Swift.AsyncSequence {
struct Iterator {
var iterator: A.AsyncIterator?
var element: A.Element?
let transform: @Sendable (A.Element, A.Element) async throws -> A.Element
init(_: A.AsyncIterator, transform: @escaping @Sendable (A.Element, A.Element) async throws -> A.Element)
func next() async throws -> A.Element?
}
let base: A
let transform: @Sendable (A.Element, A.Element) async throws -> A.Element
init(_: A, transform: @escaping @Sendable (A.Element, A.Element) async throws -> A.Element)
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncThrowingInclusiveReductionsSequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncThrowingInclusiveReductionsSequence.Iterator {
var iterator: A.AsyncIterator?
var element: A.Element?
let transform: @Sendable (A.Element, A.Element) async throws -> A.Element
init(_: A.AsyncIterator, transform: @escaping @Sendable (A.Element, A.Element) async throws -> A.Element)
func next() async throws -> A.Element?
}
struct AsyncThrowingInterspersedSequence where A: Swift.AsyncSequence {
enum Separator {
case syncClosure(@Sendable () throws -> A.Element)
case asyncClosure(@Sendable () async throws -> A.Element)
}
struct Iterator {
enum State {
case start(A.Element?)
case element(Swift.Int)
case separator
case finished
}
var iterator: A.AsyncIterator
let separator: AsyncAlgorithmsInternal.AsyncThrowingInterspersedSequence.Separator
let every: Swift.Int
var state: AsyncAlgorithmsInternal.AsyncThrowingInterspersedSequence.Iterator.State
init(_: A.AsyncIterator, every: Swift.Int, separator: AsyncAlgorithmsInternal.AsyncThrowingInterspersedSequence.Separator)
func next() async throws -> A.Element?
}
let base: A
let separator: AsyncAlgorithmsInternal.AsyncThrowingInterspersedSequence.Separator
let every: Swift.Int
init(_: A, every: Swift.Int, separator: @escaping @Sendable () async throws -> A.Element)
init(_: A, every: Swift.Int, separator: @escaping @Sendable () throws -> A.Element)
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncThrowingInterspersedSequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncThrowingInterspersedSequence.Iterator {
enum State {
case start(A.Element?)
case element(Swift.Int)
case separator
case finished
}
var iterator: A.AsyncIterator
let separator: AsyncAlgorithmsInternal.AsyncThrowingInterspersedSequence.Separator
let every: Swift.Int
var state: AsyncAlgorithmsInternal.AsyncThrowingInterspersedSequence.Iterator.State
init(_: A.AsyncIterator, every: Swift.Int, separator: AsyncAlgorithmsInternal.AsyncThrowingInterspersedSequence.Separator)
func next() async throws -> A.Element?
}
struct AsyncThrowingRemoveDuplicatesSequence where A: Swift.AsyncSequence {
struct Iterator {
var iterator: A.AsyncIterator
let predicate: @Sendable (A.Element, A.Element) async throws -> Swift.Bool
var last: A.Element?
init(iterator: A.AsyncIterator, predicate: @escaping @Sendable (A.Element, A.Element) async throws -> Swift.Bool)
func next() async throws -> A.Element?
}
let base: A
let predicate: @Sendable (A.Element, A.Element) async throws -> Swift.Bool
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncThrowingRemoveDuplicatesSequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncThrowingRemoveDuplicatesSequence.Iterator {
var iterator: A.AsyncIterator
let predicate: @Sendable (A.Element, A.Element) async throws -> Swift.Bool
var last: A.Element?
init(iterator: A.AsyncIterator, predicate: @escaping @Sendable (A.Element, A.Element) async throws -> Swift.Bool)
func next() async throws -> A.Element?
}
struct AsyncTimerSequence where A: Swift.Clock {
struct Iterator {
var clock: A?
let interval: A.Duration
let tolerance: A.Duration?
var last: A.Instant?
func next() async -> A.Instant?
}
let clock: A
let interval: A.Duration
let tolerance: A.Duration?
init(interval: A.Duration, tolerance: A.Duration?, clock: A)
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncTimerSequence.Iterator
static func repeating(every: A.Duration, tolerance: A.Duration?, clock: A) -> AsyncAlgorithmsInternal.AsyncTimerSequence
}
struct AsyncAlgorithmsInternal.AsyncTimerSequence.Iterator {
var clock: A?
let interval: A.Duration
let tolerance: A.Duration?
var last: A.Instant?
func next() async -> A.Instant?
}
struct AsyncZip2Sequence where A: Swift.AsyncSequence, B: Swift.AsyncSequence {
struct Iterator {
class InternalClass {
let storage: AsyncAlgorithmsInternal.ZipStorage
}
let internalClass: AsyncAlgorithmsInternal.AsyncZip2Sequence.Iterator.InternalClass
func next() async throws -> (A.Element, B.Element)?
}
let base1: A
let base2: B
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncZip2Sequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncZip2Sequence.Iterator {
class InternalClass {
let storage: AsyncAlgorithmsInternal.ZipStorage
}
let internalClass: AsyncAlgorithmsInternal.AsyncZip2Sequence.Iterator.InternalClass
func next() async throws -> (A.Element, B.Element)?
}
struct AsyncZip3Sequence where A: Swift.AsyncSequence, B: Swift.AsyncSequence, C: Swift.AsyncSequence {
struct Iterator {
class InternalClass {
let storage: AsyncAlgorithmsInternal.ZipStorage
}
let internalClass: AsyncAlgorithmsInternal.AsyncZip3Sequence.Iterator.InternalClass
func next() async throws -> (A.Element, B.Element, C.Element)?
}
let base1: A
let base2: B
let base3: C
func makeAsyncIterator() -> AsyncAlgorithmsInternal.AsyncZip3Sequence.Iterator
}
struct AsyncAlgorithmsInternal.AsyncZip3Sequence.Iterator {
class InternalClass {
let storage: AsyncAlgorithmsInternal.ZipStorage
}
let internalClass: AsyncAlgorithmsInternal.AsyncZip3Sequence.Iterator.InternalClass
func next() async throws -> (A.Element, B.Element, C.Element)?
}
struct BoundedBufferStateMachine where A: Swift.AsyncSequence {
enum State {
case initial(base: A)
case buffering(task: Swift.Task<(), Swift.Never>, buffer: CollectionsInternal.Deque, any Swift.Error>>, suspendedProducer: Swift.UnsafeContinuation<(), Swift.Never>?, suspendedConsumer: Swift.UnsafeContinuation?, Swift.Never>?)
case finished(buffer: CollectionsInternal.Deque, any Swift.Error>>)
case modifying
}
enum ProducerSuspendedAction {
case none
case resumeProducer
}
enum FinishAction {
case resumeConsumer(continuation: Swift.UnsafeContinuation?, Swift.Never>?)
case none
}
enum ElementProducedAction {
case resumeConsumer(continuation: Swift.UnsafeContinuation?, Swift.Never>, result: Swift.Result)
case none
}
enum NextSuspendedAction {
case returnResult(producerContinuation: Swift.UnsafeContinuation<(), Swift.Never>?, result: Swift.Result?)
case none
}
enum NextAction {
case startTask(base: A)
case returnResult(producerContinuation: Swift.UnsafeContinuation<(), Swift.Never>?, result: Swift.Result?)
case suspend
}
enum InterruptedAction {
case resumeProducerAndConsumer(task: Swift.Task<(), Swift.Never>, producerContinuation: Swift.UnsafeContinuation<(), Swift.Never>?, consumerContinuation: Swift.UnsafeContinuation?, Swift.Never>?)
case none
}
var state: AsyncAlgorithmsInternal.BoundedBufferStateMachine.State
let limit: Swift.Int
}
struct ChannelStateMachine where B: Swift.Error {
enum SendSuspendedAction {
case resumeProducerAndConsumer(continuation: Swift.UnsafeContinuation?)
case resumeProducer
}
enum SendCancelledAction {
case resumeProducer(continuation: Swift.UnsafeContinuation<(), Swift.Never>?)
case none
}
enum SendAction {
case resumeConsumer(continuation: Swift.UnsafeContinuation?)
case suspend
}
enum FinishAction {
case resumeProducersAndConsumers(producerSontinuations: [Swift.UnsafeContinuation<(), Swift.Never>?], consumerContinuations: [Swift.UnsafeContinuation?])
case none
}
struct SuspendedProducer {
let id: Swift.UInt64
let continuation: Swift.UnsafeContinuation<(), Swift.Never>?
let element: A?
}
enum NextSuspendedAction {
case resumeConsumer(element: A?)
case resumeConsumerWithError(error: any Swift.Error)
case resumeProducerAndConsumer(continuation: Swift.UnsafeContinuation<(), Swift.Never>?, element: A?)
}
struct SuspendedConsumer {
let id: Swift.UInt64
let continuation: Swift.UnsafeContinuation?
}
enum NextCancelledAction {
case resumeConsumer(continuation: Swift.UnsafeContinuation?)
case none
}
enum NextAction {
case resumeProducer(continuation: Swift.UnsafeContinuation<(), Swift.Never>?, result: Swift.Result)
case suspend
}
enum State {
case channeling(suspendedProducers: CollectionsInternal.OrderedSet.SuspendedProducer>, cancelledProducers: Swift.Set.SuspendedProducer>, suspendedConsumers: CollectionsInternal.OrderedSet.SuspendedConsumer>, cancelledConsumers: Swift.Set.SuspendedConsumer>)
case terminated(AsyncAlgorithmsInternal.ChannelStateMachine.Termination)
}
enum Termination {
case failed(any Swift.Error)
case finished
}
var state: AsyncAlgorithmsInternal.ChannelStateMachine.State
}
struct AsyncAlgorithmsInternal.ChannelStateMachine.SuspendedConsumer {
let id: Swift.UInt64
let continuation: Swift.UnsafeContinuation?
}
struct AsyncAlgorithmsInternal.ChannelStateMachine.SuspendedProducer {
let id: Swift.UInt64
let continuation: Swift.UnsafeContinuation<(), Swift.Never>?
let element: A?
}
struct ChannelStorage where B: Swift.Error {
let stateMachine: AsyncAlgorithmsInternal.ManagedCriticalState>
let ids: AsyncAlgorithmsInternal.ManagedCriticalState
}
struct CombineLatestStateMachine where A: Swift.AsyncSequence, B: Swift.AsyncSequence, C: Swift.AsyncSequence {
enum State {
struct Upstream {
var continuation: Swift.UnsafeContinuation<(), any Swift.Error>?
var element: A1?
var isFinished: Swift.Bool
}
case initial(base1: A, base2: B, base3: C?)
case waitingForDemand(task: Swift.Task<(), Swift.Never>, upstreams: (AsyncAlgorithmsInternal.CombineLatestStateMachine.State.Upstream, AsyncAlgorithmsInternal.CombineLatestStateMachine.State.Upstream, AsyncAlgorithmsInternal.CombineLatestStateMachine.State.Upstream), buffer: CollectionsInternal.Deque<(A.Element, B.Element, C.Element?)>)
case combining(task: Swift.Task<(), Swift.Never>, upstreams: (AsyncAlgorithmsInternal.CombineLatestStateMachine.State.Upstream, AsyncAlgorithmsInternal.CombineLatestStateMachine.State.Upstream, AsyncAlgorithmsInternal.CombineLatestStateMachine.State.Upstream), downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, buffer: CollectionsInternal.Deque<(A.Element, B.Element, C.Element?)>)
case upstreamsFinished(buffer: CollectionsInternal.Deque<(A.Element, B.Element, C.Element?)>)
case upstreamThrew(error: any Swift.Error)
case finished
case modifying
}
enum ChildTaskSuspendedAction {
case resumeContinuation(upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>)
case resumeContinuationWithError(upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>, error: any Swift.Error)
}
enum UpstreamFinishedAction {
case cancelTaskAndUpstreamContinuations(task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
case resumeContinuationWithNilAndCancelTaskAndUpstreamContinuations(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
}
enum ElementProducedAction {
case resumeContinuation(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, result: Swift.Result<(A.Element, B.Element, C.Element?)?, any Swift.Error>)
}
enum UpstreamThrewAction {
case cancelTaskAndUpstreamContinuations(task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
case resumeContinuationWithErrorAndCancelTaskAndUpstreamContinuations(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, error: any Swift.Error, task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
}
enum NextAction {
case startTask(A, B, C?)
case resumeUpstreamContinuations(upstreamContinuation: [Swift.UnsafeContinuation<(), any Swift.Error>])
case resumeContinuation(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, result: Swift.Result<(A.Element, B.Element, C.Element?)?, any Swift.Error>)
case resumeDownstreamContinuationWithNil(Swift.UnsafeContinuation, Swift.Never>)
}
enum CancelledAction {
case resumeDownstreamContinuationWithNilAndCancelTaskAndUpstreamContinuations(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
case cancelTaskAndUpstreamContinuations(task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
}
enum IteratorDeinitializedAction {
case cancelTaskAndUpstreamContinuations(task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>])
}
var state: AsyncAlgorithmsInternal.CombineLatestStateMachine.State
let numberOfUpstreamSequences: Swift.Int
}
struct AsyncAlgorithmsInternal.CombineLatestStateMachine.State.Upstream {
var continuation: Swift.UnsafeContinuation<(), any Swift.Error>?
var element: A1?
var isFinished: Swift.Bool
}
struct DebounceStateMachine where A: Swift.AsyncSequence, B: Swift.Clock {
enum State {
case initial(base: A)
case waitingForDemand(task: Swift.Task<(), Swift.Never>, upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>?, clockContinuation: Swift.UnsafeContinuation?, bufferedElement: (element: A.Element, deadline: B.Instant)?)
case demandSignalled(task: Swift.Task<(), Swift.Never>, clockContinuation: Swift.UnsafeContinuation?, downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>)
case debouncing(task: Swift.Task<(), Swift.Never>, upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>?, downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, currentElement: (element: A.Element, deadline: B.Instant))
case upstreamFailure(error: any Swift.Error)
case finished
}
enum UpstreamTaskSuspendedAction {
case resumeContinuation(upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>)
case resumeContinuationWithError(upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>, error: any Swift.Error)
}
enum UpstreamFinishedAction {
case cancelTaskAndClockContinuation(task: Swift.Task<(), Swift.Never>, clockContinuation: Swift.UnsafeContinuation?)
case resumeContinuationWithNilAndCancelTaskAndUpstreamAndClockContinuation(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, task: Swift.Task<(), Swift.Never>, upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>?, clockContinuation: Swift.UnsafeContinuation?)
case resumeContinuationWithElementAndCancelTaskAndUpstreamAndClockContinuation(downstreamContinuation: Swift.UnsafeContinuation, Swift.Never>, element: A.Element, task: Swift.Task<(), Swift.Never>, upstreamContinuation: Swift.UnsafeContinuation<(), any Swift.Error>?, clockContinuation: Swift.UnsafeContinuation?)
}
enum ElementProducedAction {
case resumeClockContinuation(clockContinuation: Swift.UnsafeContinuation?, deadline: B.Instant)
}
enum ClockTaskSuspendedAction {
case resumeContinuation(clockContinuation: Swift.UnsafeContinuation, deadline: B.Instant)
case resumeContinuationWithError(clockContinuation: Swift.UnsafeContinuation, error: any Swift.Error)
}
enum ClockSleepFinishedAction {
case resumeDownstreamContinuation(downstreamContinuation: Swift.UnsafeContinuation