I want to learn swift concurrency
Generated on 9/9/2024
1 search
To learn about Swift concurrency, you can explore several sessions from WWDC 2024 that cover different aspects of concurrency in Swift:
-
Migrate your app to Swift 6: This session discusses how Swift 6 helps protect against race conditions and introduces concurrency features. It covers the transition to Swift 6, including enabling data-race safety and adopting concurrency features. You can start with the chapter on Swift 6 and data-race safety (03:20) and continue through the chapters on adopting concurrency features and enabling complete checking.
-
A Swift Tour: Explore Swift’s features and design: This session provides an overview of Swift's concurrency model, including tasks, async/await, and actors. The chapter on Concurrency (18:33) is a good starting point to understand the basics of writing concurrent code in Swift.
-
What’s new in Swift: This session highlights the new Swift 6 language mode and its data-race safety features. The chapter on Swift 6 language mode and data-race safety (26:07) provides insights into how Swift 6 achieves data-race safety by default.
These sessions will give you a comprehensive understanding of Swift concurrency and how to implement it in your applications.
Migrate your app to Swift 6
Experience Swift 6 migration in action as we update an existing sample app. Learn how to migrate incrementally, module by module, and how the compiler helps you identify code that’s at risk of data races. Discover different techniques for ensuring clear isolation boundaries and eliminating concurrent access to shared mutable state.
A Swift Tour: Explore Swift’s features and design
Learn the essential features and design philosophy of the Swift programming language. We’ll explore how to model data, handle errors, use protocols, write concurrent code, and more while building up a Swift package that has a library, an HTTP server, and a command line client. Whether you’re just beginning your Swift journey or have been with us from the start, this talk will help you get the most out of the language.
What’s new in Swift
Join us for an update on Swift. We’ll briefly go through a history of Swift over the past decade, and show you how the community has grown through workgroups, expanded the package ecosystem, and increased platform support. We’ll introduce you to a new language mode that achieves data-race safety by default, and a language subset that lets you run Swift on highly constrained systems. We’ll also explore some language updates including noncopyable types, typed throws, and improved C++ interoperability.