Asynchronous Programming with Combine
summary
Apple’s Combine is a declarative Swift API for streams: code shows concrete use of URLSession dataTask publisher, timers, NotificationCenter and KVO publishers, plus map/filter/scan, combineLatest and catch for errors. Pipelines return concrete publisher types often erased with eraseToAnyPublisher; subscriptions produce AnyCancellable stored in a set or via store(in:). Examples show debouncing, parallel requests, cancellation and transforming failures; Combine runs only on recent Apple OSes and is early-adopter ready.
AI-written summary · about
chapters (16)
- 0:00Introduction and speaker intro
- 1:06What is asynchronous programming
- 5:25Reactive programming concepts
- 7:37Publisher and subscriber basics
- 10:26Simple Combine examples
- 12:58Cancellables and cleanup
- 15:26Demand and subscriptions
- 17:30Publisher-subscriber lifecycle
- 18:59Handling state with scan
- 21:14Network requests with Combine
- 22:59Error handling in pipelines
- 23:21Combining publishers
- 24:51Type erasure in Combine
- 25:38Practical tips for Combine
- 27:03Production use and limitations
- 28:31Q&A and closing








