Core Data works well with concurrency as long as you keep a few simple rules in mind. This chapter will teach you how to make sure that your Core Data app is able to handle concurrency properly…
iOS & Swift
Chapter in Concurrency by Tutorials
Introduction
Aug 2 2023 · Chapter
…possibly in a random order, yet still result in a correct implementation of your data flow. Moderns devices almost always have more than a single CPU, and Apple’s iPhones have been dual core since 2011. Having more than one core means they are capable of running more than…
iOS & Swift
Chapter in Concurrency by Tutorials
Queues & Threads
Aug 2 2023 · Chapter
…work that could be performed on another thread. Optimized resource consumption: Threads are highly optimized by the OS. Sounds great, right? More cores, more threads, faster app. I bet you’re ready to learn how to create one, right? Too bad! In reality, you should never find yourself needing…
iOS & Swift
Chapter in Concurrency by Tutorials
GCD vs. Operations
Aug 2 2023 · Chapter
…method or a closure — that can be run in parallel, depending on availability of resources; it then executes the tasks on an available processor core. Note: Apple’s documentation sometimes refers to a block in lieu of closure, since that was the name used in Objective-C. You can consider…