Observer, or Observable/Observer:
A design pattern by which an object is imbued with the ability to notify others of specific events - typically done using actual events, which are kind of like slots in the object with the shape of a specific function/method. The observable is the one who provides notifications, and the observer receives those notifications.观察者模式 VS 发布/订阅(广播)
最新推荐文章于 2024-04-08 21:12:25 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)