/** * Updates a service in the environment of this channel. * * @tsplus static effect/core/stream/Channel.Aspects updateService * @tsplus pipeable effect/core/stream/Channel updateService */ export function updateService( tag: Tag, f: (resource: T) => T1 ) { return ( self: Channel ): Channel => self.provideSomeEnvironment((env) => env.merge(Env(tag, f(env.unsafeGet(tag))))) }