takeUntil

Returns an Observable that emits elements emitted by the source Observable until the other Observable emits an element.

Please refer to the corresponding RxJava document.


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

Returns an Observable that emits elements emitted by the source Observable, checks the specified predicate for each element and completes when it returned true

Please refer to the corresponding RxJava document.