/** * Accesses the specified service in the environment of the channel in the * context of an effect. * * @tsplus static effect/core/stream/Channel.Ops serviceWithEffect */ export function serviceWithEffect( tag: Tag, f: (resource: T) => Effect ): Channel { return Channel.service(tag).mapEffect(f) }