Login required for access
In order to watch this lesson, you'll need to login to the website.
Background Thread Object Creation
Intermediate Training Core Data
In order to view this lesson, you must purchase this course.
With the majority of our UI features taken care of already, it's time to discuss how to create Core Data objects in a multithreaded application. In order to maintain the responsiveness of a high quality app, you'll need to perform heavy work on background threads that don't block/hang the UI. In today's lesson, we take a look at how a background thread can be run through <b>GCD (Grand Central Dispatch)</b> to perform a long running task. In the second portion of the lesson, we inspect what happens when you try to use an NSManagedObjectContext that belongs to the main queue on a background thread. Finally, let's go through the code of performing creation of Company objects with performBackgroundTask on NSPersistentContainer.

Comments (5)
Cinquain
5 years ago
Cinquain
5 years ago
Christophe Bugnon
6 years ago
Christophe Bugnon
6 years ago
moopoints
6 years ago
jesseIOS17
6 years ago
Alpensol
6 years ago
Brian Voong
6 years ago
Please contact admin@letsbuildthatapp.com if you have any issues.
HELP & SUPPORT