Swift Concurrency
Apple introduced Swift Concurrency during WWDC 2021, which adds support for structured asynchronous and parallel programming to Swift 5.5. This allows you to write concurrent code that 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. 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
- Examining an app without concurrency
- Updating the app using async/await
- Improving efficiency using async-let