-1

假设我们有两个热可观察的整数,我们得到一个像这样的结果

var result = Observable.Zip(observable1, observable2);

我的问题是,假设一个元素来自 observable1,结果是在调用观察者之前等待 observable2 中的匹配对还是从观察者 2 获取最后一个值?

4

1 回答 1

4

Zip waits for a pair to come through.

If you want to use the latest value from observer2 when a value comes through observable1, you should use CombineLatest.

You can also find more info on combining sequences in the Intro to Rx chapter on that topic.

于 2013-09-12T16:05:30.920 回答