Skip to content

Instantly share code, notes, and snippets.

@harukizaemon
Created November 1, 2012 23:48
Show Gist options
  • Save harukizaemon/3997641 to your computer and use it in GitHub Desktop.
Save harukizaemon/3997641 to your computer and use it in GitHub Desktop.
- (void)performUsingBlock:(void (^)(NSManagedObjectContext *context))block {
[self performBlock:^{
block(self);
}];
}
- (void)performUsingBlockAndWait:(void (^)(NSManagedObjectContext *context))block {
[self performBlockAndWait:^{
block(self);
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment