WWDC21: Explore structured concurrency in Swift | Apple
When you have code that needs to run at the same time as other code, it’s important to choose the right tool for the job. We'll take you through the different kinds of concurrent tasks you can create in Swift, show you how to create groups of tasks, and find out how to cancel tasks in progress. We'll also provide guidance on when you may want to use unstructured tasks.
To get the most out of this session, we first recommend watching “Meet async/await in Swift.”
Explore related documentation, sample code, and more:
SE-0317: async let: https://github.com/apple/swift-evolution/blob/main/proposals/0317-async-let.md
SE-0304: Structured concurrency: https://github.com/apple/swift-evolution/blob/main/proposals/0304-structured-concurrency.md
The Swift Programming Language: Concurrency: https://docs.swift.org/swift-book/LanguageGuide/Concurrency.html
Beyond the basics of structured concurrency: https://developer.apple.com/videos/play/wwdc2023/10170
Visualize and optimize Swift concurrency: https://developer.apple.com/videos/play/wwdc2022/110350
Eliminate data races using Swift Concurrency: https://developer.apple.com/videos/play/wwdc2022/110351
Discover concurrency in SwiftUI: https://developer.apple.com/videos/play/wwdc2021/10019
Meet AsyncSequence: https://developer.apple.com/videos/play/wwdc2021/10058
Meet async/await in Swift: https://developer.apple.com/videos/play/wwdc2021/10132
Protect mutable state with Swift actors: https://developer.apple.com/videos/play/wwdc2021/10133
What‘s new in Swift: https://developer.apple.com/videos/play/wwdc2021/10192
Swift concurrency: Update a sample app: https://developer.apple.com/videos/play/wwdc2021/10194
Swift concurrency: Behind the scenes: https://developer.apple.com/videos/play/wwdc2021/10254
More Apple Developer resources:
Video sessions: https://apple.co/VideoSessions
Documentation: https://apple.co/DeveloperDocs
Forums: https://apple.co/DeveloperForums
App: https://apple.co/DeveloperApp