repeatWhen

fun <T> Maybe<T>.repeatWhen(handler: (attempt: Int) -> Maybe<*>): Observable<T>

When the Maybe signals onSuccess or onComplete, re-subscribes to the Maybe when the Maybe returned by the handler function emits a value.

Please refer to the corresponding RxJava document.