Hi! I’m trying to implement thread-safe event listeners, something that reminds me of Java Event listeners.
The idea is that I have many parts of a system that must react to change events in another part of the system. So a listener will wait until an event happens, handle the event and then wait for the next event.
The solution I’m giving for this problem is this code at:
I would like feedback if I’m doing something wrong, or if there is a better way to code this.