I cannot find any information about it. I have a dispatch_queue_t in my application where I put some tasks to do. But these tasks take some time and it happens that sometimes they shouldn’t be called any more so I would like to clean out queue. Is it possible?
I cannot find any information about it. I have a dispatch_queue_t in my application
Share
Use NSOperationQueue for these capabilities – much more convenient. After adding operations to a queue, you can cancel them and even cancel all pending operations if needed.
Here’s a good tutorial to get you started:
http://www.raywenderlich.com/19788/how-to-use-nsoperations-and-nsoperationqueues