Filtering data using RXJava2 Flowable
问题 I am using Room and RxJava and I would like to use the power of the second to filter data coming from the first. Let's say room is returning Users. Flowable<List<User> getUsers() Then I wanted to filter users by age > 18 for example, so I performed the following : userDao.getUsers() .flatMap(listUser -> Flowable.fromIterable(listUser).filter(user -> user.age > 18)) .toList() .toFlowable() Unfortunately this is not working. My guess is that toList() is never finishing since onTerminated is