Is there a way to have Schedule with exponential b...
# arrow
s
Is there a way to have Schedule with exponential back off for up to n times?
Copy code
fun <A> policy() =
    Schedule.exponential<A>(100.milliseconds)
        .whileOutput { it.millis < 1000 }
        .or(Schedule.recurs(3))
What am I doing wrong here?
s
Schedule.exponential and Schedule.recurs(n)
and
- Combine two schedules. Continues only when both continue and chooses the maximum delay
☝️ 2
recommended video:

https://www.youtube.com/watch?v=onQSHiafAY8

Arrow Schedule is based on ZIO Schedule
s
@stojan thanks!
😉 1