Chapter 24: Getting Started with Swift Concurrency

Apple introduced Swift Concurrency during WWDC2021, which adds support for structured asynchronous and parallel programming to Swift 5.5. This allows you to write concurrent code which is more readable and easier to understand.

In this chapter, you will learn the basic concepts of Swift Concurrency. Next, you will examine an app without concurrency and explore its issues. After that, you will use async/await to implement concurrency in the app. Next, you'll make your app more efficient by using async-let. Finally, you'll modify the RestaurantListViewController class in your Let's Eat app to use async/await for loading restaurant images.

By the end of this chapter, you'll have learned the basics ...

Get iOS 15 Programming for Beginners - Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.