Skip to content

Instantly share code, notes, and snippets.

@pkyeck
Created March 12, 2012 08:47
Show Gist options
  • Save pkyeck/2020764 to your computer and use it in GitHub Desktop.
Save pkyeck/2020764 to your computer and use it in GitHub Desktop.

Revisions

  1. pkyeck created this gist Mar 12, 2012.
    6 changes: 6 additions & 0 deletions gistfile1.m
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^{
    /* do your copying here */
    dispatch_async(dispatch_get_main_queue(), ^{
    /* anything in here will happen on the main thread after the background thread has finished copying. For example, update your UI. */
    });
    });