retry

fun Completable.retry(predicate: (attempt: Long, Throwable) -> Boolean = { _, _ -> true }): Completable

When the Completable signals onError, re-subscribes to the Completable if the predicate returns true.

Please refer to the corresponding RxJava document.


When the Completable signals onError, re-subscribes to the Completable, up to times times.

Please refer to the corresponding RxJava document.