import * as tsplus_module_1 from "@tsplus/stdlib/data/Duration";
import * as tsplus_module_2 from "@effect/core/io/Schedule/operations/repeatForever";
import * as tsplus_module_3 from "@effect/core/io/Schedule/operations/map";
import * as tsplus_module_4 from "@effect/core/io/Schedule/operations/delayedUsing";
/**
 * A schedule that always recurs, but will repeat on a linear time interval,
 * given by `base * n` where `n` is the number of repetitions so far. Returns
 * the current duration between recurrences.
 *
 * @tsplus static ets/Schedule/Ops linear
 */

export function linear(base) {
  return tsplus_module_4.delayedUsing(tsplus_module_3.map_(tsplus_module_2.repeatForever, i => new tsplus_module_1.Duration(base.millis * (i + 1))));
}
//# sourceMappingURL=linear.mjs.map