I fetch ids from a network request which helps me ...
# rx
r
I fetch ids from a network request which helps me initiate a detailed network request for the id. From this response, I query each element's status via a final network request.
Copy code
getIds().flatmap(ids: List<Long> -> getDetails(ids))
             .flatmap(result -> checkStatus(result).map(model -> Pair(result, model)))
I'm concerned with the consecutive calls to flatmap, is this the idiomatic approach to the problem?