import * as tsplus_module_1 from "@effect/core/stream/Stream/TerminationStrategy";
import * as tsplus_module_2 from "@effect/core/stream/Stream/operations/mergeWith";
/**
 * 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 fluent ets/Stream merge
 */

export function merge_(self, that, strategy = () => tsplus_module_1.both, __tsplusTrace) {
  return tsplus_module_2.mergeWith_(self, that, a => a, a => a, strategy, __tsplusTrace);
}
/**
 * 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 ets/Stream/Aspects merge
 */

export const merge = (that, strategy = () => TerminationStrategy.Both, __tsplusTrace) => self => merge_(self, that, strategy, __tsplusTrace);
//# sourceMappingURL=merge.mjs.map