Last active
August 12, 2018 18:22
-
-
Save nishabe/cf70e2f399cace1ba9086f6de44e7623 to your computer and use it in GitHub Desktop.
OBJC: GCD: Creating a concurrent queue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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