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
6 years ago
Christophe Bugnon
7 years ago
Christophe Bugnon
7 years ago
moopoints
7 years ago
jesseIOS17
7 years ago
Alpensol
7 years ago
Brian Voong
7 years ago
Please contact admin@letsbuildthatapp.com if you have any issues.
HELP & SUPPORT