Swift Structured Concurrency
Swift Structured Concurrency
August 28, 2022 01:30 PM 05:00 PM Mt. Sopris
Swift Structured Concurrency … This is what you have been (await)ing for!
In this half-day session, we will discuss Swift structured concurrency and why we need it.
Material needed:
MacOS Monterey / XCode 13
1:30 – 2:00 PM
Docs: Review Medium article:
https://zoewave.medium.com/swift-structured-concurrency-e4161337aff1
2:15 – 3:30 PM
Playgrounds: Swift 5.5
This is an Xcode playground that demonstrates the new features introduced in Swift 5.5:
Async await
Async sequences
Effectful read-only properties
Structured concurrency
async let bindings
Continuations for interfacing async tasks with synchronous code
Actors
Global actors
Sendable and @Sendable closures
Playground Code: https://github.com/developerY/MulitSwift
Thanks to Paul Hudson @TwoStraws
Fork of: twostraws/whats-new-in-swift-5-5
3:45 – 4:45 PM
Codelab: Updating an App to Use Swift Concurrency*
Improve your app’s performance by refactoring your code to take advantage of asynchronous functions in Swift.
Github: https://github.com/developerY/CodeLabAnAppToUseSwiftConcurrency
*This example is very well defined and has great supporting documentation
4:45 – 5:00 PM
Paul – Words of advice:
How to become an iOS developer
Related
Hands On Lab