https://kotlinlang.org logo
#rx
Title
a

Akram

09/21/2019, 6:08 PM
hello guys i just want to know what is the best approach to use rxjava in search when searching some remote server (to prevent fast typing and getting false results )
p

Paul Woitaschek

09/21/2019, 7:15 PM
Use debounce + switchMap
👍 3
u

ursus

09/22/2019, 3:55 AM
Copy code
textObservable.switchMap { Observable.timer(..).flatMap { api.search }}
👍 1
2 Views