import * as tsplus_module_1 from "@effect/core/io/Schedule/operations/repeatForever";
import * as tsplus_module_2 from "@effect/core/io/Schedule/operations/whileOutput";
/**
 * A schedule spanning all time, which can be stepped only the specified
 * number of times before it terminates.
 *
 * @tsplus static ets/Schedule/Ops recurs
 */

export function recurs(n) {
  return tsplus_module_2.whileOutput_(tsplus_module_1.repeatForever, _ => _ < n);
}
//# sourceMappingURL=recurs.mjs.map