onErrorResumeNext

fun <T> Maybe<T>.onErrorResumeNext(nextSupplier: (Throwable) -> Maybe<T>): Maybe<T>

When the Maybe signals onError, resumes the flow with a new Maybe returned by nextSupplier.

Please refer to the corresponding RxJava document.


fun <T> Maybe<T>.onErrorResumeNext(next: Maybe<T>): Maybe<T>

When the Maybe signals onError, resumes the flow with next Maybe.

Please refer to the corresponding RxJava document.