MCPcopy Index your code
hub / github.com/ReactiveX/RxJava / retryUntil

Method retryUntil

src/main/java/io/reactivex/rxjava3/core/Single.java:4486–4492  ·  view source on GitHub ↗

Retries until the given stop function returns true. Scheduler: retryUntil does not operate by default on a particular {@li

(@NonNull BooleanSupplier stop)

Source from the content-addressed store, hash-verified

4484 * @since 3.0.0
4485 */
4486 @CheckReturnValue
4487 @NonNull
4488 @SchedulerSupport(SchedulerSupport.NONE)
4489 public final Single<T> retryUntil(@NonNull BooleanSupplier stop) {
4490 Objects.requireNonNull(stop, "stop is null");
4491 return retry(Long.MAX_VALUE, Functions.predicateReverseFor(stop));
4492 }
4493
4494 /**
4495 * Re-subscribes to the current {@code Single} if and when the {@link Publisher} returned by the handler

Callers

nothing calls this directly

Calls 2

retryMethod · 0.95
predicateReverseForMethod · 0.95

Tested by

no test coverage detected