import { TerminationStrategy } from "@effect/core/stream/Stream//TerminationStrategy" /** * Merges this stream and the specified stream together to produce a stream of * eithers. * * @tsplus static effect/core/stream/Stream.Aspects mergeEither * @tsplus pipeable effect/core/stream/Stream mergeEither */ export function mergeEither( that: Stream, strategy: TerminationStrategy = TerminationStrategy.Both ) { return (self: Stream): Stream> => self.mergeWith( that, (a) => Either.leftW(a), (a2) => Either.rightW(a2), strategy ) }