Trying to prevent a crash due to something else modifying the mutable delegateNodes array when it shouldn't be.
Guarding against a crash due to improper mutable array access
Fixing white space
Have you had this crasher yourself?
Trying to work out why it isn't a common occurrence.
I'm actually going to update the PR soon with some new changes. It turns out that this wasn't sufficient to address the issue.
I feel like this class's public interface needs to be thread safe. We've done our best to make our own code that interacts with this class all bound to the same queue, but its really messy and still isn't as reliable as I would like. Without calling all the methods in this class from the same thread it will crash pretty often. Its far cleaner and more reliable once we made the changes within this class.
I'll update with some new commits very soon.
Making GCDMulticastDelegate threadsafe
@ObjColumnist just pushed some updates. The main idea is to drive all traffic that accesses the internal mutable array through the same queue. Let me know if this approach seems interesting and if you guys are open to this. Thanks!