import { concreteStream, StreamInternal } from "@effect/core/stream/Stream/operations/_internal/StreamInternal" /** * Pipes all the values from this stream through the provided channel. * * @tsplus static effect/core/stream/Stream.Aspects pipeThroughChannel * @tsplus pipeable effect/core/stream/Stream pipeThroughChannel */ export function pipeThroughChannel( channel: Channel, unknown, E2, Chunk, unknown> ) { return (self: Stream): Stream => { concreteStream(self) return new StreamInternal(self.channel >> channel) } }