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