Say I have an Observable
, like so:
var one = someObservable.take(1);
one.subscribe(function(){ /* do something */ });
Then, I have a second Observable
:
var two = someOtherObservable.take(1);
Now, I want to subscribe()
to two
, but I want to make sure that one
has completed before the two
subscriber is fired.
What kind of buffering method can I use on two
to make the second one wait for the first one to be completed?
I suppose I am looking to pause two
until one
is complete.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…