debounce

fun <T> Observable<T>.debounce(timeout: Duration, scheduler: Scheduler): Observable<T>

Returns an Observable that mirrors the source Observable, but drops elements that are followed by newer ones before the timeout expires on a specified Scheduler.

Please refer to the corresponding RxJava document.


fun <T> Observable<T>.debounce(debounceSelector: (T) -> Completable): Observable<T>

Returns an Observable that mirrors the source Observable, but drops elements that are followed by newer ones within a computed debounce duration.

Please refer to the corresponding RxJava document.