Skip to content

Instantly share code, notes, and snippets.

@schystz
Created February 7, 2014 10:27
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 schystz/8860330 to your computer and use it in GitHub Desktop.
Save schystz/8860330 to your computer and use it in GitHub Desktop.
ObjC GCD method templates
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0),
^{
// code goes here
});
dispatch_async(dispatch_get_main_queue(),
^{
// code goes here
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment