final List<Order> orders = Observable
.from(searchAttributes)
.filter(searchAttribute-> !searchAttribute.isEmpty())
.flatMap(searchAttribute-> Observable.just(networkCall(searchAttribute)).subscribeOn(Schedulers.io()))
.toList()
.toBlocking()
.single();
I am using the following article to learn RxJava : https://proandroiddev.com/understanding-rxjava-subscribeon-and-observeon-744b0c6a41ea
In the above code networkCall function should happen on a separate IO thread however the network call happens on the same IO thread basically sequentially. How do I parallelize the call using RxJava?