import { concreteStream, StreamInternal } from "@effect/core/stream/Stream/operations/_internal/StreamInternal";
/**
 * Performs the specified operation with the channel underlying this stream.
 *
 * @tsplus fluent ets/Stream channelWith
 */

export function channelWith_(self, f, __tsplusTrace) {
  void 0;
  return new StreamInternal(f(self.channel));
}
/**
 * Performs the specified operation with the channel underlying this stream.
 *
 * @tsplus static ets/Stream/Aspects channelWith
 */

export const channelWith = (f, __tsplusTrace) => self => channelWith_(self, f, __tsplusTrace);
//# sourceMappingURL=channelWith.mjs.map