0:00 / 0:00
What's new for concurrency in Swift 6.2
donny wals
4.6K subscribers • 1 video on Hallway
- Recommended by 1 person: 1 in engineering communities.
- Presented by Donny Wals
- May be out of date. The tools, versions or practices it shows have likely moved on.
Intermediate. Assumes working knowledge.
4.3K views1 year ago1 recommendation
Programming languagesConcurrency and parallelismSwift
Donny Wals explains the concurrency updates in Swift 6.2, including nonisolated(nonsending) and changes to default actor isolation in Xcode.
Swift 6.2 is now officially in beta and so it's time for me to talk about what's new in concurrency for Swift 6.2. This video is a companion for my blog post on the same topic: donnywals.com/exploring-concurrency-changes-in-swift-6-2?utm… In this video you will learn about nonislated(nonsending), and how it will make nonisolated async functions run on the actor that they were called from by default. You'll learn why this matters, and how you can use @Concurrent to offload work to a background thread. You'll also see how you can enable this feature from within Xcode's build settings directly. After that, we'll take a look at the new concurrency default in Xcode 26 that will make all your code run on the main actor by default. You'll learn how you can control default actor isolation by either setting it to MainActor or nonisolated, and you'll learn how this simplifies the way your code works. We'll also talk about how you can opt-out of this feature on a type- and function level. Strengthen your iOS development skills with my books: gumroad.com/l/practical-combine?utm_source=youtube gumroad.com/l/practical-core-data?utm_source=youtube gumroad.com/l/practical-swift-concurrency?utm_source=youtube gumroad.com/l/practical-bundle?utm_source=youtube Timestamps - intro - function types in Swift 6.1 - calling functions from the main actor - calling functions from the global executor - introducing nonisolated(nonsending) - demonstrating actor inheritance - introducing @concurrent - introducing default actor isolation - summaryWhy it's here
1 person recommends thisWhat people say. Recommended as a clear overview of the concurrency changes introduced in Swift 6.2.