import * as tsplus_module_1 from "@effect/core/stream/Channel/operations/pipeToOrFail";
import { concreteStream, StreamInternal } from "@effect/core/stream/Stream/operations/_internal/StreamInternal";
/**
 * Pipes all values from this stream through the provided channel, passing
 * through any error emitted by this stream unchanged.
 *
 * @tsplus fluent ets/Stream pipeThroughChannelFail
 */

export function pipeThroughChannelFail_(self, channel, __tsplusTrace) {
  void 0;
  return new StreamInternal(tsplus_module_1.pipeToOrFail_(self.channel, channel));
}
/**
 * Pipes all values from this stream through the provided channel, passing
 * through any error emitted by this stream unchanged.
 *
 * @tsplus static ets/Stream/Aspects pipeThroughChannelOrFail
 */

export const pipeThroughChannelFail = (channel, __tsplusTrace) => self => pipeThroughChannelFail_(self, channel, __tsplusTrace);
//# sourceMappingURL=pipeThroughChannelOrFail.mjs.map