// ets_tracing: off import type * as CK from "../../../../Collections/Immutable/Chunk/index.js" import type * as T from "../../../../Effect/index.js" import * as SK from "../../Sink/index.js" import type * as C from "../core.js" import * as Run from "./run.js" /** * Consumes all elements of the stream, passing them to the specified callback. */ export function runForEachChunk_( self: C.Stream, f: (c: CK.Chunk) => T.Effect ): T.Effect { return Run.run_(self, SK.forEachChunk(f)) } /** * Consumes all elements of the stream, passing them to the specified callback. * * @ets_data_first runForEachChunk_ */ export function runForEachChunk( f: (c: CK.Chunk) => T.Effect ) { return (self: C.Stream) => runForEachChunk_(self, f) }