can an observer observe multiple observables?

前端 未结 5 1734
南笙
南笙 2021-02-10 16:14

trying to find an example of this, it\'s possible that I am not going the right way around it, or that my mind has over simplified the concept of the observer pattern.

I

5条回答
  •  独厮守ぢ
    2021-02-10 16:40

    This is certainly doable. All you need to do is pass add a parameter to the oberver function/method that points at the observable.

提交回复
热议问题