import * as tsplus_module_1 from "@effect/core/stream/Sink/operations/forEachChunk";
import * as tsplus_module_2 from "@effect/core/stream/Stream/operations/runScoped";
/**
 * Like `Stream.runForEachChunk`, but returns a scoped `Effect` so the
 * finalization order can be controlled.
 *
 * @tsplus fluent ets/Stream runForEachChunkScoped
 */

export function runForEachChunkScoped_(self, f, __tsplusTrace) {
  return tsplus_module_2.runScoped_(self, () => tsplus_module_1.forEachChunk(f, __tsplusTrace), __tsplusTrace);
}
/**
 * Like `Stream.runForEachChunk`, but returns a scoped `Effect` so the
 * finalization order can be controlled.
 *
 * @tsplus static ets/Stream/Aspects runForEachChunkScoped
 */

export const runForEachChunkScoped = (f, __tsplusTrace) => self => runForEachChunkScoped_(self, f, __tsplusTrace);
//# sourceMappingURL=runForEachChunkScoped.mjs.map