Hi, I'm trying to rewrite `IO` code ```val func = ...
# arrow
r
Hi, I'm trying to rewrite
IO
code
Copy code
val func = IO {
    println("some effect")
}
func.retry(arrow.fx.Schedule.recurs(IO.monad(), 3))
into coroutines but I can't find
retry
function which works on
suspend () -> Unit
. Does it exist or what's the alternative? Thanks
s
It does exist, but the syntax is slightly different 🙂 You can find all methods in the API docs on the Arrow Fx website. https://arrow-kt.io/docs/apidocs/arrow-fx-coroutines/arrow.fx.coroutines/retry.html
m
How is success defined?
s