.flatMap(updateTime(errorMap, )) //flatmap1
For the above pseudo code. I have a error map that collects errors in each of the functions . and then get a final map that has errors from both the flatmap functions.
also as obvious the success ones fron faltmap1 feeds as input to flatmap2.
Question: I want to get rid of the errorMap and use toMap or any other functions available in Observable.
Problem. From flatMap 1 , there are 2 outputs, a) success keys which should feed into the 2nd flatmap b) error Map that should not go as input to the 2nd flatMap…
How to return 2 sets of Observables?