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

Method retryWhen

src/main/java/io/reactivex/rxjava3/core/Maybe.java:5062–5068  ·  view source on GitHub ↗

Returns a Maybe that emits the same values as the current Maybe with the exception of an onError. An onError notification from the source will result in the emission of a Throwable item to the Flowable provided as an argument to the {@code notification

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

Source from the content-addressed store, hash-verified

5060 * @see <a href="http://reactivex.io/documentation/operators/retry.html">ReactiveX operators documentation: Retry</a>
5061 */
5062 @CheckReturnValue
5063 @SchedulerSupport(SchedulerSupport.NONE)
5064 @NonNull
5065 public final Maybe<T> retryWhen(
5066 @NonNull Function<? super Flowable<Throwable>, @NonNull ? extends Publisher<@NonNull ?>> handler) {
5067 return toFlowable().retryWhen(handler).singleElement();
5068 }
5069
5070 /**
5071 * Wraps the given {@link MaybeObserver}, catches any {@link RuntimeException}s thrown by its

Calls 2

toFlowableMethod · 0.95
singleElementMethod · 0.45