Asynchronous Callback in NSOperation inside of NSOperationQueue is never called
问题 I need to chain together several NSOperation s that do network calls in one NSOperationQueue and then wait for all to be completed. I'm adding all of the NSOperation s to my NSOperationQueue and then call operationQueue.waitUntilAllOperationsAreFinished() . This works, but it waits indefinitely, as the callbacks in the NSOperations , that set the operation's state to 'finished', get never called. I'm using the following NSOperation subclass: class ConcurrentOperation: NSOperation { enum State