Dispatch runLoop deadlock when removing a handler from within a handler
Closed this issue · 2 comments
Santiclause commented
Spent a while tracking down what was going on - when you try to call a returned Remover
's Remove
method from within an event handler, it deadlocks because dispatch holds a read lock until it finishes dispatching.
iopred commented
Ah ty, will figure out a solution here.