import { TerminationStrategy } from "@effect/core/stream/Stream/TerminationStrategy" /** * Merges this stream and the specified stream together. * * New produced stream will terminate when both specified stream terminate if * no termination strategy is specified. * * @tsplus static effect/core/stream/Stream.Aspects merge * @tsplus pipeable effect/core/stream/Stream merge */ export function merge( that: Stream, strategy: TerminationStrategy = TerminationStrategy.Both ) { return (self: Stream): Stream => self.mergeWith( that, (a): A | A2 => a, (a): A | A2 => a, strategy ) }