repeatUntil

fun <T> Maybe<T>.repeatUntil(predicate: () -> Boolean): Observable<T>

When the Maybe signals onSuccess or onComplete, re-subscribes to the Maybe if the predicate function returns false.

Please refer to the corresponding RxJava document.