Stream mapMulti with infinite streams

I thought that all stream pipelines written using flatMap can be converted to use mapMulti. Looks like I was wrong when the flatMap or mapMulti returns/operates on an infinite stream. This is for educational purpose only When we map an element to an infinite stream inside a flatMap followed by a limit(), then the stream… Read More Stream mapMulti with infinite streams