import { concreteStream, StreamInternal } from "@effect/core/stream/Stream/operations/_internal/StreamInternal" /** * Performs the specified operation with the channel underlying this stream. * * @tsplus static effect/core/stream/Stream.Aspects channelWith * @tsplus pipeable effect/core/stream/Stream channelWith */ export function channelWith( f: ( channel: Channel, unknown> ) => Channel, unknown> ) { return (self: Stream): Stream => { concreteStream(self) return new StreamInternal(f(self.channel)) } }