Im looking at the `retry` documentation and it loo...
# arrow
b
Im looking at the
retry
documentation and it looks like it retries an action until it doesn't throw an exception? if my action/function returns an
Either
, how would I make it retry on
Left
until
Right
?
y
Surely something as simple as
myEither.getOrElse { error("foo") }
suffices
a
you can use build s
Schedule
using things like
doUntil
(https://apidocs.arrow-kt.io/arrow-resilience/arrow.resilience/-schedule/do-until.html) which would check whether the result is a
Left
🔝 1
b
Ah, maybe i'll try
doUntil
, I was trying to avoid using exceptions