How to wait another observable result while transforming the current one?
I have a list of user ids (userIdsList
), and I should convert them to a map. In map key is represented by userId and value is boolean, which indicates if userId containsin regUsers
.
return Observable
.<List<Long>>from(userIdsList)
.groupBy(id -> id, id -> regUsers.contains(id)); //PROBLEM: regUsers is Observable<List<Long>>