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

Method retryWhen

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

Re-subscribes to the current Single if and when the Publisher returned by the handler function signals a value. If the {@code Publisher

(@NonNull Function<? super Flowable<Throwable>, @NonNull ? extends Publisher<@NonNull ?>> handler)

Source from the content-addressed store, hash-verified

4536 * @throws NullPointerException if {@code handler} is {@code null}
4537 */
4538 @CheckReturnValue
4539 @SchedulerSupport(SchedulerSupport.NONE)
4540 @NonNull
4541 public final Single<T> retryWhen(@NonNull Function<? super Flowable<Throwable>, @NonNull ? extends Publisher<@NonNull ?>> handler) {
4542 return toSingle(toFlowable().retryWhen(handler));
4543 }
4544
4545 /**
4546 * Wraps the given {@link SingleObserver}, catches any {@link RuntimeException}s thrown by its

Callers

nothing calls this directly

Calls 2

toSingleMethod · 0.95
toFlowableMethod · 0.95

Tested by

no test coverage detected