dnowak
02/22/2020, 1:26 PMrepeat
and retry
provided by Schedule
. But I got failure with a simple example:
fun main() {
var counter = 0
val io = IO.effect {
println("Run: ${counter++}")
counter
}
io.repeat(IO.concurrent(), Schedule.once(IO.monad())).fix().unsafeRunSync()
}