throttleLatest

fun <T> Observable<T>.throttleLatest(timeout: Duration, scheduler: Scheduler, emitLast: Boolean = false): Observable<T>

Emits a first element from the source Observable and opens a time window specified by timeout. Then does not emit any elements from the source Observable while the time window is open, and only emits a most recent element when the time window closes.

Please refer to the corresponding RxJava document


fun <T> Observable<T>.throttleLatest(timeout: (T) -> Completable, emitLast: Boolean = false): Observable<T>

Emits a first element from the source Observable, then calls the timeout supplier and and opens a time window defined by a returned Completable. Then does not emit any elements from the source Observable while the time window is open, and only emits a most recent element when the time window closes.

Please refer to the corresponding RxJava document