~/talk

The Multi-Threaded Asynchronous Parallel World of Swift

Talkat 360|iDev 2019 · 2019-08-25..08-28· [frontend-architecture]
name:Leo Dion
links:none on file
slides:none on file

Shows concrete APIs and outcomes: uses Grand Central Dispatch with dispatch groups for concurrent downloads, semaphores and barriers to avoid race conditions, and operation queues for explicit dependencies but notes they don’t fit async well; demonstrates NSTask for separate processes; implements promises with GooglePromises (DispatchQueue + fulfill/reject) and SwiftNIO Futures (EventLoop + promise) and shows Combine’s dataTaskPublisher + receive(on: main) but warns Combine requires iOS 13+/macOS 10.15; mentions Async/Await proposal as syntactic sugar.

AI-written summary · about

  1. 0:00Start
  2. 3:06Graph of CPU Speed
  3. 4:04Graph of Cores
  4. 7:27URLRequest
  5. 7:57Notification Center
  6. 8:26Timers
  7. 9:06UI Updates
  8. 10:21Race Conditions
  9. 11:18Barriers Semaphores and Locks
  10. 12:29NSTask and Process
  11. 13:23NSThread
  12. 14:27DispatchQueue
  13. 15:18DispatchGroup
  14. 16:39GCD Barriers Code Sample Semaphores Flags
  15. 17:51Adding Operations
  16. 18:18Dealing with Dependencies
  17. 20:47SwiftNIO Futures
  18. 23:45Google Futures
  19. 30:40What's the Future?
  20. 33:23Thank You!
~/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.