Combine! All the things
summary
Explains Combine as Apple’s declarative reactive API from WWDC19 and grounds it in concrete code: Publisher/Subscriber/Subject as core types, operator implementations like map, flatMap, filter, merge, zip and timing operators (debounce/throttle), and lifecycle details (subscription, backpressure, cancel). Demo app on GitHub streams keystrokes, debounces 0.5s, filters empties and negatives, maps/capitalizes strings and assigns to a UILabel via AnyCancellable and sink/assign. Notes Combine is beta and subscribeOn behavior is unstable in current betas.
AI-written summary · about
chapters (10)
- 0:00Introduction to Combine
- 1:50Core reactive principles
- 4:48Benefits of Combine
- 6:55Publishers and subscribers
- 11:53Practical implementation
- 16:13Threading in Combine
- 18:54Lifecycle and backpressure
- 20:58Working with operators
- 27:07Coding demonstration
- 29:18Conclusion and resources








