Mobiconf 2018: Bartosz Polaczyk, Grand Parade
summary
Actor model applied to Swift: a small generic wrapper (about 50 lines of code) sits on a serial GCD queue and delivers strongly typed enum messages to enum-state actors, turning async flows into a serial “island.” Uses a driver/actor split, fire‑and‑forget messages with no return, and unit tests that assert output comments synchronously. Practical example implements a table‑view list loader with network actor and UI comments; solves callbacks by sending UUID identifiers, moves timers to an external timer actor, and reduces type erasure to one-line type erasure — used successfully in production code.
AI-written summary · about
chapters (7)
- 0:00Introduction to actors
- 8:11Actors in mobile development
- 18:52Actor implementation in Swift
- 28:18Testing actors for concurrency
- 30:50Challenges with actors
- 34:16Future of actors in Swift
- 37:14Summary and conclusion
related talks
32mAn Actor Model in Go
31mIs structured concurrency worth the effort?
31mActor, Thread and me
47mDo We Really Need Actors in Swift Concurrency?
31mIsolation, actors, sendable… a concurrency deep dive
30mDistributed Systems with Swift
30mA Practical Guide to Swift Concurrency
54mScala concurrency patterns with Actors
