import { MergeDecision } from "@effect/core/stream/Channel/MergeDecision" /** * @tsplus static effect/core/stream/Channel.Aspects zipPar * @tsplus pipeable effect/core/stream/Channel zipPar */ export function zipPar( that: Channel ) { return ( self: Channel ): Channel< Env1 | Env, InErr & InErr1, InElem & InElem1, InDone & InDone1, OutErr | OutErr1, OutElem | OutElem1, readonly [OutDone, OutDone1] > => self.mergeWith( that, (exit1) => MergeDecision.await((exit2) => Effect.done(exit1.zip(exit2))), (exit2) => MergeDecision.await((exit1) => Effect.done(exit1.zip(exit2))) ) }