retry

fun retry(predicate: (Error?) -> Boolean): PollingConfigBuilder<T>

Sets the retry predicate used when the last attempt produced a Failure(Error). Return true to retry, false to stop with Exhausted. See built-ins in RetryPredicates.