retry
fun <T> Single<T>.retry(predicate: (attempt: Long, Throwable) -> Boolean = { _, _ -> true }): Single<T>
When the Single signals onError, re-subscribes to the Single if the predicate returns true.
Please refer to the corresponding RxJava document.
When the Single signals onError, re-subscribes to the Single, up to times times.
Please refer to the corresponding RxJava document.