( durationInput: Duration.DurationInput )
| 1214 | |
| 1215 | /** @internal */ |
| 1216 | export 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 */ |
| 1224 | export const recurWhile = <A>(f: Predicate<A>): Schedule.Schedule<A, A> => whileInput(identity<A>(), f) |
no test coverage detected
searching dependent graphs…