arrow-fx / arrow.fx / arrow.Kind / retryOrElse
fun <F, A, B> Kind<F, A>.~~retryOrElse~~(CF:
Concurrent
<F>, schedule:
Schedule
<F,
Throwable
, B>, orElse: (
Throwable
, B) -> Kind<F, A>): 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>.~~retryOrElse~~(ME: MonadError<F, E>, T:
Timer
<F>, schedule:
Schedule
<F, E, B>, orElse: (E, B) -> Kind<F, A>): 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. Also offers a function to handle errors if they are encountered during retrial.
Do you like Arrow?
✖