In my application I have two Flows of data which I want to combine into a single one containing a pair of the values. However, when Flow A emits a new value the combined Flow should emit a pair with a null value until Flow B emits a new value. Think of it like this:
Flow A A --------------------------> B --------------------------> C ----->
Flow B 1 ---------> 2 ------------------------> 3 ----> 4 --------------> 5
Result A1 --------> A2 ------------> Bn ------> B3 ---> B4 ------> Cn --> C5
Where n stands for the null value. How can I create this behaviour? Is there maybe an extension function for this on Flow similar to zip or so?