arrow-fx-coroutines / arrow.fx.coroutines / kotlinx.coroutines.flow.Flow / retry

retry

fun <A, B> Flow<A>.retry(schedule: Schedule<Throwable, B>): Flow<A>

Retries collection of the given flow when an exception occurs in the upstream flow based on a decision by the schedule. This operator is transparent to exceptions that occur in downstream flow and does not retry on exceptions that are thrown to cancel the flow.

Parameters

schedule -

  • the Schedule used for retrying the collection of the flow

See Also

Schedule

Do you like Arrow?

Arrow Org
<