/** * Retry this Nono when the Publisher returned by the handler function * signals a normal item or terminate if the Publisher terminates. * @param handler the Function that receives a Flowable of the failure Throwable * and returns a Publisher that if signals a normal item, it triggers a * resubscription. * @return the new Nono instance */ public final Nono retryWhen(Function<? super Flowable<Throwable>, ? extends Publisher<?>> handler) { ObjectHelper.requireNonNull(handler, "handler is null"); return onAssembly(new NonoRetryWhen(this, handler)); }
/** * Retry this Nono when the Publisher returned by the handler function * signals a normal item or terminate if the Publisher terminates. * @param handler the Function that receives a Flowable of the failure Throwable * and returns a Publisher that if signals a normal item, it triggers a * resubscription. * @return the new Nono instance */ public final Nono retryWhen(Function<? super Flowable<Throwable>, ? extends Publisher<?>> handler) { ObjectHelper.requireNonNull(handler, "handler is null"); return onAssembly(new NonoRetryWhen(this, handler)); }