arrow-fx / arrow.fx / arrow.Kind / retryOrElseEither

retryOrElseEither

fun <F, A, B, C> Kind<F, A>.~~retryOrElseEither~~(CF: Concurrent<F>, schedule: Schedule<F, Throwable, B>, orElse: (Throwable, B) -> Kind<F, C>): Kind<F, Either<C, 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, C> Kind<F, A>.~~retryOrElseEither~~(ME: MonadError<F, E>, T: Timer<F>, schedule: Schedule<F, E, B>, orElse: (E, B) -> Kind<F, C>): Kind<F, Either<C, 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?

Arrow Org
<