How can I build an observable that emits at some predetermined interval, but can also be done to emit when the second observed radiation is emitted, at that moment the interval will be βresetβ to start emitting again in the original interval, starting from the point of the second ping ?
For example, suppose the interval is 10 minutes. The observable would be radiated at 10, 20, 30, etc. But let's say the second observable when emitted at time 15. Then the total observable should be ping at 10, 15, 25, 35, etc.
user663031
source share