Retries until the given stop function returns true. Scheduler: retryUntil does not operate by default on a particular {@lin
(@NonNull BooleanSupplier stop)
| 4978 | * @throws NullPointerException if {@code stop} is {@code null} |
| 4979 | */ |
| 4980 | @CheckReturnValue |
| 4981 | @NonNull |
| 4982 | @SchedulerSupport(SchedulerSupport.NONE) |
| 4983 | public final Maybe<T> retryUntil(@NonNull BooleanSupplier stop) { |
| 4984 | Objects.requireNonNull(stop, "stop is null"); |
| 4985 | return retry(Long.MAX_VALUE, Functions.predicateReverseFor(stop)); |
| 4986 | } |
| 4987 | |
| 4988 | /** |
| 4989 | * Returns a {@code Maybe} that emits the same values as the current {@code Maybe} with the exception of an |
nothing calls this directly
no test coverage detected