"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.channelWith = void 0;
exports.channelWith_ = channelWith_;

var _StreamInternal = /*#__PURE__*/require("@effect/core/stream/Stream/operations/_internal/StreamInternal");

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


const channelWith = (f, __tsplusTrace) => self => channelWith_(self, f, __tsplusTrace);

exports.channelWith = channelWith;
//# sourceMappingURL=channelWith.js.map