Skip to content

Instantly share code, notes, and snippets.

@jdelStrother
Created February 12, 2014 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdelStrother/8960714 to your computer and use it in GitHub Desktop.
Save jdelStrother/8960714 to your computer and use it in GitHub Desktop.
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
id result = [self doSomethingSlow];
dispatch_async(dispatch_get_main_queue(), ^{
[self doSomethingToTableviewWithResult:result]
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment