how to buffer the latest value until another value arrive in another sequence by rxjs?

Viewed 745

I am trying to use rxjs in my project. I have following sequences, what I expected is that the 1rd sequence will only be handled after a value arrive in another sequence, and only the latest value in the 1st sequence will be reserved. Any suggestion for it?

s1$ |a---b----c-

s2$ |------o----

expected result:

s3$ |------b--c-
3 Answers
Related