import * as tsplus_module_1 from "@tsplus/stdlib/service/Env";
import * as tsplus_module_2 from "@effect/core/stream/Channel/operations/provideSomeEnvironment";
/**
 * Updates a service in the environment of this channel.
 *
 * @tsplus fluent ets/Channel updateService
 */

export function updateService_(self, tag, f, __tsplusTrace) {
  return tsplus_module_2.provideSomeEnvironment_(self, env => env.merge(tsplus_module_1.Env(tag, f(env.unsafeGet(tag)))));
}
/**
 * Updates a service in the environment of this channel.
 */

export const updateService = (tag, f, __tsplusTrace) => self => updateService_(self, tag, f, __tsplusTrace);
//# sourceMappingURL=updateService.mjs.map