How to invoke a method for each element in a collection parallely using RxJava
问题 I have below two methods and need to invoke findDetails(name) method parallely for all names in the list. How can achieve this using RxJava? Basically I want to invoke findDetails method for each element in teh collection in diffrent threads. public List<Bean> findStudentDetails(List<String> names){ names.forEach(s->{ findDetails(s); }); } private Bean findDetails(String name){ //some io operation } 回答1: Make your methods to return Observable , then flatMap your Observables with applied