Straight to the point!
- How do signals/slots and event/event-listeners compare?
- Are there any pros and cons?
- Which one should I consider and why?
Thanks in advance!
Straight to the point!
- How do signals/slots and event/event-listeners compare?
- Are there any pros and cons?
- Which one should I consider and why?
Thanks in advance!
My general approach is to use Events/Listeners inside a single app, they are really efficient and fast, and IDEs have lots of tooling that makes them relatively easy to implement. My rule of thumb would be to use this pattern if you really need to be sure the listener gets notified of the event every time.
I use a signals/slots pattern in SOA applications or systems integration, since it is a more lag-friendly and stateless approach.