Stream.flatMap with `switch: true` - can it ignore "previous" streams?
Once the stream has switched to the latest value of the counter, I would expect the output to be "tick 2" from that point on:
But I'm seeing:
I thought with
How can I achieve the switching behavior that I want? Thank you for your consideration.
But I'm seeing:
I thought with
switch: true, the flatMap would stop listening to the previous streams. I came to this conclusion based on other discussions in this Discord server.How can I achieve the switching behavior that I want? Thank you for your consideration.
