/**
* Consumes all elements of the stream, passing them to the specified
* callback.
*
* @tsplus static effect/core/stream/Stream.Aspects runForEachChunk
* @tsplus pipeable effect/core/stream/Stream runForEachChunk
*/
export function runForEachChunk(
f: (chunk: Chunk) => Effect
) {
return (self: Stream): Effect =>
self.run(
Sink.forEachChunk(f)
)
}