Skip to content

Instantly share code, notes, and snippets.

@nishabe
Last active August 12, 2018 18:22
Show Gist options
  • Save nishabe/cf70e2f399cace1ba9086f6de44e7623 to your computer and use it in GitHub Desktop.
Save nishabe/cf70e2f399cace1ba9086f6de44e7623 to your computer and use it in GitHub Desktop.
OBJC: GCD: Creating a concurrent queue
dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
dispatch_async(queue, ^{
// Perform long running process
dispatch_async(dispatch_get_main_queue(), ^{
// Update the UI
});
});"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment