import * as tsplus_module_1 from "@effect/core/stream/Channel/operations/service";
import * as tsplus_module_2 from "@effect/core/stream/Channel/operations/flatMap";
/**
 * Accesses the specified service in the environment of the channel in the
 * context of a channel.
 *
 * @tsplus static ets/Channel/Ops serviceWithChannel
 */

export function serviceWithChannel(tag) {
  return f => tsplus_module_2.flatMap_(tsplus_module_1.service(tag), f);
}
//# sourceMappingURL=serviceWithChannel.mjs.map