I am sure that I should be able to find the answer to my problem in the documentation of rxjs, but I am getting nowhere...
Problem: I have two streams, one is more important than the other. Both provide the same information. But in case stream A provides a value for the first time, I want to completely dismiss stream B, because it is now outdated.
It is kind of a cache-thing: provide a value from the cache, but as soon as there is a live value, update the cache and do not read form it anymore.
I have tried several combinations piping the two streams, but I cannot cancel B after A has published...
Which rx-operator could provide the functionality that I need?