~/talk

Swift Structured Concurrency

Talkat 360iDev 2022 · 2022-08-28..08-31· [swift, testing]
links:none on file
slides:none on file

Half-day, hands-on session uses MacOS Monterey and Xcode 13 playgrounds (Swift 5.5) and a GitHub playground repo to show working examples: async await and AsyncImage demo (few lines to fetch and display images), task groups and cancellation (thousand-image loop, cooperative cancellation, reduce/average over results), and actors prevent races (class vs actor race demo and thread-reentrancy caveats). Also covers continuations for legacy callbacks, async sequences with zip/merge, and that the demos compile and run in the playgrounds.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10Transition to Swift structured concurrency
  3. 10:26Understanding do-catch in Swift
  4. 19:34Memory model in Swift concurrency
  5. 32:10From closures to structured concurrency
  6. 57:05Swift structured concurrency
  7. 1:02:27Task creation and execution
  8. 1:11:28Task cancellation and task groups
  9. 1:23:16Async-await with multiple tasks
  10. 1:36:41Why actors are needed
  11. 1:56:18Actors vs classes vs structs
  12. 2:03:03SwiftUI and structured concurrency
  13. 2:12:46Async sequences and algorithms
  14. 2:26:16Main actor and global actors
  15. 2:36:24Wrap-up and additional resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.