I would expect my case to be common, but cannot find anything suitable. What I want to achieve in Angular2 / RxJS 5 :
source: ---1--2--3--4---------5--------6-|--> notifier: -o------------o-----o---o--oo------> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ output: ---1----------2-----3---4--5---6-|-->
So, I have an Observable source that emits values, and I want each of them to go to the output only when the second Observable is called (call its notifier). This, as one event from the notifier, means "allow passing through."
I tried delayWhen , but my main problem is that all the source values ββexpect the same event from the notifier, so for example, if three source values ββare βqueuedβ and the notifier emits once, all 3 values ββpass. that is not what i want.
source share