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

export function updateService_(self, tag, f, __tsplusTrace) {
  return tsplus_module_1.provideSomeEnvironment_(self, env => env.add(tag, f(env.unsafeGet(tag))), __tsplusTrace);
}
/**
 * Updates a service in the environment of this stream.
 *
 * @tsplus static ets/Stream/Aspects updateService
 */

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