The rxjava doc definition of switchmap is rather vague and it links to the same page as flatmap. What is the difference between the two operators?
switchMap was once called flatMapLatest in RxJS 4.
It basically just passes on the events from the latest Observable and unsubscribes from the previous one.