repeatUntil

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

When the Completable signals onComplete, re-subscribes to the Completable if the predicate function returns false.

Please refer to the corresponding RxJava document.