9
Swift Concurrency
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 WWDC24, Apple introduced Swift 6, which makes concurrency programming easier by diagnosing data races at compile time. Swift concurrency documentation was further updated after WWDC25.
Currently, it is not recommended to turn strict concurrency on for large existing projects, as it is likely to generate multiple errors and warnings. However, as this is Apple’s direction going forward, you will be turning it on for the project in this chapter and in Part 3 of this book, so you may learn and gain ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access