import * as tsplus_module_1 from "@effect/core/stream/Stream/operations/runFoldWhileScopedEffect";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/scoped";
/**
 * Reduces the elements in the stream to a value of type `S`. Stops the fold
 * early when the condition is not fulfilled.
 *
 * @tsplus fluent ets/Stream runFoldWhileEffect
 */

export function runFoldWhileEffect_(self, s, cont, f, __tsplusTrace) {
  return tsplus_module_2.scoped(() => tsplus_module_1.runFoldWhileScopedEffect_(self, s, cont, f, __tsplusTrace), __tsplusTrace);
}
/**
 * Reduces the elements in the stream to a value of type `S`. Stops the fold
 * early when the condition is not fulfilled.
 *
 * @tsplus static ets/Stream/Aspects runFoldWhileEffect
 */

export const runFoldWhileEffect = (s, cont, f, __tsplusTrace) => self => runFoldWhileEffect_(self, s, cont, f, __tsplusTrace);
//# sourceMappingURL=runFoldWhileEffect.mjs.map