Open Source Your Knowledge, Become a Contributor
Technology knowledge has to be shared and made accessible for free. Join the movement.
Merging sequences is the operation consisting of listening for values from several
Publishers and emitting them in a single
On this first exercise we will begin by merging elements of two
Flux as soon as they arrive.
The caveat here is that values from
flux1 arrive with a delay, so in the resulting
we start seeing values from
But if we want to keep the order of sources, we can use the
concat operator. Concat will
flux1 to complete before it can subscribe to
flux2, ensuring that all the values
flux1 have been emitted, thus preserving an order corresponding to the source.
You can use
concat with several
Publisher. For example, you can get two
Mono and turn
them into a same-order