import * as tsplus_module_1 from "@effect/core/io/Schedule/operations/recurUpTo";
import * as tsplus_module_2 from "@effect/core/io/Schedule/operations/zipLeft";
/**
 * A schedule that recurs during the given duration.
 *
 * @tsplus fluent ets/Schedule upTo
 * @tsplus fluent ets/Schedule/WithState upTo
 */

export function upTo_(self, duration) {
  return tsplus_module_2.zipLeft_(self, tsplus_module_1.recurUpTo(duration));
}
/**
 * A schedule that recurs during the given duration.
 *
 * @tsplus static ets/Schedule/Aspects upTo
 */

export const upTo = duration => self => upTo_(self, duration);
//# sourceMappingURL=upTo.mjs.map