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)
| 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 |