SwiftstructAsyncAlgorithmsInternal
struct AsyncAlgorithmsInternal.ZipStateMachine
Members 2
Header
struct ZipStateMachine<A, B, C> where A: Swift.AsyncSequence, B: Swift.AsyncSequence, C: Swift.AsyncSequence { enum State { struct Upstream<A1> { 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<A, B, C>.State.Upstream<A.Element>, AsyncAlgorithmsInternal.ZipStateMachine<A, B, C>.State.Upstream<B.Element>, AsyncAlgorithmsInternal.ZipStateMachine<A, B, C>.State.Upstream<C.Element>)) case zipping(task: Swift.Task<(), Swift.Never>, upstreams: (AsyncAlgorithmsInternal.ZipStateMachine<A, B, C>.State.Upstream<A.Element>, AsyncAlgorithmsInternal.ZipStateMachine<A, B, C>.State.Upstream<B.Element>, AsyncAlgorithmsInternal.ZipStateMachine<A, B, C>.State.Upstream<C.Element>), downstreamContinuation: Swift.UnsafeContinuation<Swift.Result<(A.Element, B.Element, C.Element?)?, any Swift.Error>, Swift.Never>) 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 resumeContinuationWithNilAndCancelTaskAndUpstreamContinuations(downstreamContinuation: Swift.UnsafeContinuation<Swift.Result<(A.Element, B.Element, C.Element?)?, any Swift.Error>, Swift.Never>, task: Swift.Task<(), Swift.Never>, upstreamContinuations: [Swift.UnsafeContinuation<(), any Swift.Error>]) } enum ElementProducedAction { case resumeContinuation(downstreamContinuation: Swift.UnsafeContinuation<Swift.Result<(A.Element, B.Element, C.Element?)?, any Swift.Error>, Swift.Never>, result: Swift.Result<(A.Element, B.Element, C.Element?)?, any Swift.Error>) } enum UpstreamThrewAction { case resumeContinuationWithErrorAndCancelTaskAndUpstreamContinuations(downstreamContinuation: Swift.UnsafeContinuation<Swift.Result<(A.Element, B.Element, C.Element?)?, any Swift.Error>, 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 resumeDownstreamContinuationWithNil(Swift.UnsafeContinuation<Swift.Result<(A.Element, B.Element, C.Element?)?, any Swift.Error>, Swift.Never>) } enum CancelledAction { case resumeDownstreamContinuationWithNilAndCancelTaskAndUpstreamContinuations(downstreamContinuation: Swift.UnsafeContinuation<Swift.Result<(A.Element, B.Element, C.Element?)?, any Swift.Error>, 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.ZipStateMachine<A, B, C>.State let numberOfUpstreamSequences: Swift.Int }