Join our book community on Discord
Apple introduced Swift concurrency, which adds support for structured asynchronous and parallel programming to Swift 5.5, during WWDC21. It allows you to write concurrent code, which is more readable and easier to understand. During WWDC 2024, Apple introduced Swift 6, which makes concurrency programming easier by diagnosing data races at compile time.
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. Finally, you'll make your app more efficient by using async-let.
By the end of this chapter, you'll have learned the basics of how Swift concurrency works, and how to update your own apps to use it.
The following topics will be covered:
- Understanding Swift concurrency...