arrow-fx / arrow.fx / arrow.Kind / retry

retry

fun <A, B> IOOf<A>.retry(schedule: Schedule<ForIO, Throwable, B>): IO<A>fun <F, A, B> Kind<F, A>.~~retry~~(CF: Concurrent<F>, schedule: Schedule<F, Throwable, B>): Kind<F, A> Deprecated: The IO datatype and it’s related type classes will disappear in Arrow 0.13.0. All useful operations are offered directly over suspend functions by Arrow Fx Coroutines. https://arrow-kt.io/docs/fx/async/

fun <F, E, A, B> Kind<F, A>.~~retry~~(ME: MonadError<F, E>, T: Timer<F>, schedule: Schedule<F, E, B>): Kind<F, A> Deprecated: The IO datatype and it’s related type classes will disappear in Arrow 0.13.0. All useful operations are offered directly over suspend functions by Arrow Fx Coroutines. https://arrow-kt.io/docs/fx/async/

Run an effect and, if it fails, decide using the passed policy if the effect should be retried and if so, with how much delay. Returns the result of the effect if if it was successful or re-raises the last error encountered when the schedule ends.

Do you like Arrow?

Arrow Org
<