import * as tsplus_module_1 from "@effect/core/io/Schedule/operations/recurWhile";
import * as tsplus_module_2 from "@effect/core/io/Schedule/operations/collectAllFrom";
/**
 * A schedule that recurs as long as the condition f holds, collecting all
 * inputs into a list.
 *
 * @tsplus static ets/Schedule/Ops collectWhile
 */

export function collectWhile(f) {
  return tsplus_module_2.collectAllFrom(tsplus_module_1.recurWhile(f));
}
//# sourceMappingURL=collectWhile.mjs.map