retry

fun <T : Any> Call<T>.retry(scope: CoroutineScope, retryPolicy: RetryPolicy): Call<T>

Wraps the original call with RetryCall wrapper. Allows to retry the original call based on RetryPolicy

Parameters

scope

Coroutine scope where the call should be run.

retryPolicy

A policy used for retrying the call.