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

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