retryWhen

fun <T> Maybe<T>.retryWhen(handler: (Observable<Throwable>) -> Observable<*>): Maybe<T>

Returns a Maybe that automatically resubscribes to this Maybe if it signals onError and the Observable returned by the handler function emits a value for that specific Throwable.

Please refer to the corresponding RxJava document.