~/talk

Async Await and More in Swift

Talkat 360|iDev 2021 · 2021-08-22..08-25· [swift]
links:none on file
slides:none on file

Shows a practical cow herd demo that actually builds wash feed and collect milk flows and proves async/await reduces branching versus completion handlers. Walks through using async let child tasks for fixed parallelism, task groups for dynamic lists, cooperative cancellation, and continuations with Xcode’s refactor to create async wrappers. Demonstrates actors (and the main actor) preventing data races with live examples that compile and run, and gives concrete warnings: don’t mark everything async, avoid OS thread locks, prefer structured over detached tasks.

AI-written summary · about

  1. 0:00Async await in Swift
  2. 2:52Async await syntax
  3. 7:06Structured concurrency with async let
  4. 13:53Task cancellation
  5. 16:01Dynamic concurrency with task groups
  6. 19:35Unstructured concurrency
  7. 23:31Actors for shared state
  8. 30:54Main actor and threading
  9. 32:18Swift concurrency benefits
  10. 33:46Recommendations and best practices
  11. 37:00Q&A
~/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.