bj0
12/06/2023, 11:15 PMretry
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
?Youssef Shoaib [MOD]
12/07/2023, 6:24 AMmyEither.getOrElse { error("foo") }
sufficesAlejandro Serrano.Mena
12/07/2023, 8:14 AMSchedule
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
bj0
12/07/2023, 3:27 PMdoUntil
, I was trying to avoid using exceptions