Lets say that I'm running some code in async sending ... is there a way to complete the created thread before it finishes? for example, when a user clicks a button
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
dispatch_async(dispatch_get_main_queue(), ^{
});
});
source
share