repeatWhen

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

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

Please refer to the corresponding RxJava document.