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