Is there a recommended thread safe data structure to be used when you want to have a set of listeners that are called for certain actions, something that in JVM could be solved with
CopyOnWriteArraySet
?
Copy code
private val actionListeners: MutableCollection<ActionListener> = CopyOnWriteArraySet()