import * as tsplus_module_1 from "@effect/core/stream/Stream/operations/service";
import * as tsplus_module_2 from "@effect/core/stream/Stream/operations/flatMap";
/**
 * Accesses the specified service in the environment of the stream in the
 * context of a stream.
 *
 * @tsplus static ets/Stream/Ops serviceWithStream
 */

export function serviceWithStream(tag, f, __tsplusTrace) {
  return tsplus_module_2.flatMap_(tsplus_module_1.service(tag, __tsplusTrace), f, __tsplusTrace);
}
//# sourceMappingURL=serviceWithStream.mjs.map