import * as tsplus_module_1 from "@effect/core/stream/Sink/operations/forEachWhile";
import * as tsplus_module_2 from "@effect/core/stream/Stream/operations/run";
/**
 * Consumes elements of the stream, passing them to the specified callback,
 * and terminating consumption when the callback returns `false`.
 *
 * @tsplus fluent ets/Stream runForEachWhile
 */

export function runForEachWhile_(self, f, __tsplusTrace) {
  return tsplus_module_2.run_(self, () => tsplus_module_1.forEachWhile(f, __tsplusTrace), __tsplusTrace);
}
/**
 * Consumes elements of the stream, passing them to the specified callback,
 * and terminating consumption when the callback returns `false`.
 *
 * @tsplus static ets/Stream/Aspects runForEachWhile
 */

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