Brais Gabin Brais Gabin - 1 year ago 66
Java Question

Aggregate all emited streams and emit them inmidiatly with rxJava

I have a stream that emit pages of data

A, B, C, D...
. Which operator can I use to get a stream like this:
[A], [A, B], [A, B, C], [A, B, C, D]...

I know
but they only emit once at the end of the stream.

Answer Source

You can try the 'scan' operator.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download