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 static effect/core/stream/Stream.Aspects pipeThroughChannelFail * @tsplus pipeable effect/core/stream/Stream pipeThroughChannelFail */ export function pipeThroughChannelFail( channel: Channel, unknown, E2, Chunk, unknown> ) { return (self: Stream): Stream => { concreteStream(self) return new StreamInternal(self.channel.pipeToOrFail(channel)) } }