Effect.repeat with a Schedule returns a number instead of the original value

Why does Effect.repeat return a number when using a Schedule?
// Effect<string>
const foo = Effect.succeed('foo').pipe(Effect.repeat({ times: 3 }));

// Effect<number>
const bar = Effect.succeed('bar').pipe(Effect.repeat({ times: 3, schedule: Schedule.fixed('1 second') }));

I'd like to add a schedule but also keep the original value that the effect returns.
Was this page helpful?