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

Function recurUpTo

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

Source from the content-addressed store, hash-verified

1214
1215/** @internal */
1216export const recurUpTo = (
1217 durationInput: Duration.DurationInput
1218): Schedule.Schedule<Duration.Duration> => {
1219 const duration = Duration.decode(durationInput)
1220 return whileOutput(elapsed, (elapsed) => Duration.lessThan(elapsed, duration))
1221}
1222
1223/** @internal */
1224export 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…