const policy = pipe(
Schedule.recurs(2),
Schedule.addDelay(() => 1000),
);
const program = pipe(
Random.nextIntBetween(0, 100),
E.repeat(policy),
E.tap(E.log), //currently showing the number of attemps, instead of the random number
);
const policy = pipe(
Schedule.recurs(2),
Schedule.addDelay(() => 1000),
);
const program = pipe(
Random.nextIntBetween(0, 100),
E.repeat(policy),
E.tap(E.log), //currently showing the number of attemps, instead of the random number
);