Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DispatchQueue.global(qos: .background).async {
- let context = NSManagedObjectContext.getMainContext() // made up method
- context.fetch(/* ... */)
- }
- DispatchQueue.global(qos: .background).async {
- let context = NSManagedObjectContext.createPrivateContextAndAssignParent() // made up method
- context.performAndWait {
- context.fetch(/* ... */)
- }
- }
- DispatchQueue.global(qos: .background).async {
- NSManagedObjectContext.getMainContext()
- context.performAndWait {
- context.fetch(/* ... */)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement