I think it is similar in your case. If an ID can represent an interface or the call of an interface element
ReactiveCocoa has several classic examples. When elements on an interface have multiple dependencies, ReactiveCocoa’s writing method is still very comfortable. For example, when two events are triggered, an interface will be updated. You We need to write a logic to monitor these two IDs
You don’t need to write callbacks, blocks, etc. when doing various asynchronous things. You can use events directly. Please correct me. It’s not that you don’t need to write logic, but this way seems more direct
Relatively speaking, the scalability and flexibility of messages are better than the traditional abstract ID. Moreover, the logic related to different interfaces can be controlled within the minimum scope, as long as the corresponding observer or consumer is implemented. Avoid sharing of static objects. Moreover, data exchange between different threads is not prone to exceptions.
Relatively speaking, the scalability and flexibility of messages are better than the traditional abstract ID. Moreover, the logic related to different interfaces can be controlled within the minimum scope, as long as the corresponding observer or consumer is implemented. Avoid sharing of static objects. Moreover, data exchange between different threads is not prone to exceptions.