switch Map Single
Calls the mapper for each element emitted by the Observable and subscribes to the returned inner Single, disposing any previously subscribed inner Single. Emits elements from inner Singles.
Please refer to the corresponding RxJava document.
fun <T, U, R> Observable<T>.switchMapSingle(mapper: (T) -> Single<U>, resultSelector: (T, U) -> R): Observable<R>
Calls the mapper for each element emitted by the Observable and subscribes to the returned inner Single, disposing any previously subscribed inner Single. Emits elements from inner Singles. For an element U emitted by an inner Single, calls resultSelector with the original source element T and the inner element U, and emits the result element R.
Please refer to the corresponding RxJava document.