I created a dispatch_async to download data to a web services.
I created an alert with a button from the possibilida to cancel / block the download.
My question is:
How can I delete / stop my dispatch_async?
This is my dispatch:
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) {
doStuff();
}