Skip to content

Instantly share code, notes, and snippets.

@MrRooni
Created November 28, 2011 21:55
Show Gist options
  • Save MrRooni/1402267 to your computer and use it in GitHub Desktop.
Save MrRooni/1402267 to your computer and use it in GitHub Desktop.
async'ing a dispatch_release
dispatch_queue_t some_worker_queue = dispatch_queue_create("some_worker_queue", DISPATCH_QUEUE_SERIAL);
dispatch_async(some_worker_queue, ^{
// Perform some work
dispatch_async(dispatch_get_main_queue(), ^{
dispatch_release(some_worker_queue);
});
});
@MrRooni
Copy link
Author

MrRooni commented Nov 30, 2011

Answers in the form of a Twitter screen shot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment