etibaldi
02/12/2018, 11:53 AMaProcessor: ---a1---a2-a3---a4------>
bProcessor: -----b1------b2------b3->
obtaining result:
(a1,b1) -> (a3,b2) -> (a4,b3)
I also need to debounce the result by some milliseconds to avoid receiving too many events in a short time, but that is applied down the stream.
I tried:
aProcessor
.concatMap { bProcessor.first(-1).toFlowable() }
.debounce(300, TimeUnit.MILLISECONDS)
But I don't think concatMap is the correct operator to discard the old A events.