arrow-fx / arrow.fx / arrow.Kind / repeat

repeat

fun <A, B> IOOf<A>.repeat(schedule: Schedule<ForIO, A, B>): IO<B>fun <F, A, B> Kind<F, A>.~~repeat~~(CF: Concurrent<F>, schedule: Schedule<F, A, B>): Kind<F, B> 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>.~~repeat~~(ME: MonadError<F, E>, T: Timer<F>, schedule: Schedule<F, A, B>): Kind<F, B> 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 this effect once and, if it succeeded, decide using the passed policy if the effect should be repeated and if so, with how much delay. Returns the last output from the policy or raises an error if a repeat failed.

Do you like Arrow?

Arrow Org
<