until

inline fun until(crossinline predicate: PredicateFunction): RetryPredicate

Returns a RetryPredicate that negates the result of the given predicate lambda function. It will allow retries until the predicate returns true.

Return

a RetryPredicate that negates the result of the predicate.

Since

1.0.0

Parameters

predicate

a lambda expression that takes a Result and an Int (retry count) as parameters and returns a Boolean.