MCPcopy Create free account
hub / github.com/Effect-TS/effect / recurUpTo

Function recurUpTo

packages/effect/src/internal/schedule.ts:1224–1229  ·  view source on GitHub ↗
(
  durationInput: Duration.DurationInput
)

Source from the content-addressed store, hash-verified

1222
1223/** @internal */
1224export const recurUpTo = (
1225 durationInput: Duration.DurationInput
1226): Schedule.Schedule<Duration.Duration> => {
1227 const duration = Duration.decode(durationInput)
1228 return whileOutput(elapsed, (elapsed) => Duration.lessThan(elapsed, duration))
1229}
1230
1231/** @internal */
1232export const recurWhile = <A>(f: Predicate<A>): Schedule.Schedule<A, A> => whileInput(identity<A>(), f)

Callers 1

schedule.tsFile · 0.85

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected