I have two observable that I am listening too with the merge operator when one of them is fire, or both I need to execute the handler only once, How can I do this with rx?
var source1 = Rx.Observable.interval(1000);
var source2 = Rx.Observable.interval(1000);
var source = Rx.Observable.merge(
source1,
source2)
.subscribe(() => console.log('This needs to run only once and not kill the stream'))