Created
June 13, 2014 09:22
-
-
Save yatatsu/4b82eec13da2255db9bb to your computer and use it in GitHub Desktop.
async
This file contains 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_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ | |
// wait... | |
[NSThread sleepForTimeInterval:1.0]; | |
dispatch_async(dispatch_get_main_queue(), ^{ | |
// something you do ... | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment