(self: Schedule.Schedule<Out, In, Env>)
| 1267 | |
| 1268 | /** @internal */ |
| 1269 | export const repeatForever = <Env, In, Out>(self: Schedule.Schedule<Out, In, Env>): Schedule.Schedule<Out, In, Env> => |
| 1270 | makeWithState(self.initial, (now, input, state) => { |
| 1271 | const step = ( |
| 1272 | now: number, |
| 1273 | input: In, |
| 1274 | state: any |
| 1275 | ): Effect.Effect<[any, Out, ScheduleDecision.ScheduleDecision], never, Env> => |
| 1276 | core.flatMap( |
| 1277 | self.step(now, input, state), |
| 1278 | ([state, out, decision]) => |
| 1279 | ScheduleDecision.isDone(decision) |
| 1280 | ? step(now, input, self.initial) |
| 1281 | : core.succeed([state, out, decision]) |
| 1282 | ) |
| 1283 | return step(now, input, state) |
| 1284 | }) |
| 1285 | |
| 1286 | /** @internal */ |
| 1287 | export const repetitions = <Out, In, R>(self: Schedule.Schedule<Out, In, R>): Schedule.Schedule<number, In, R> => |
nothing calls this directly
no test coverage detected