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