// ets_tracing: off 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 runForEach_( self: C.Stream, f: (a: A) => T.Effect ): T.Effect { return Run.run_(self, SK.forEach(f)) } /** * Consumes all elements of the stream, passing them to the specified callback. * * @ets_data_first runForEach_ */ export function runForEach(f: (a: A) => T.Effect) { return (self: C.Stream) => runForEach_(self, f) }