Last active
August 29, 2015 14:15
-
-
Save Br1an-Boyle/9dbf91388616718e9fe5 to your computer and use it in GitHub Desktop.
Worker Context Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (NSManagedObjectContext *)temporaryWorkerContext { | |
NSManagedObjectContext *tempMOContext = [[NSManagedObjectContext alloc] initWithConcurrencyType:NSPrivateQueueConcurrencyType]; | |
tempMOContext.parentContext = _mainManagedObjectContext; | |
return tempMOContext; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment