retry
fun <T> Observable<T>.retry(predicate: (attempt: Long, Throwable) -> Boolean = { _, _ -> true }): Observable<T>
Returns an Observable that automatically resubscribes to this Observable if it signals onError and the predicate returns true for that specific Throwable and attempt.
Please refer to the corresponding RxJava document.
Returns an Observable that automatically resubscribes to this Observable at most times times if it signals onError.
Please refer to the corresponding RxJava document.