Simon Whitty - FlyingFox — NIO with Structured Concurrency (2023)

Simon Whitty walks through building FlyingFox, a lightweight, zero-dependency Swift HTTP server designed to support iOS app testing on Swift 5.5+. He covers how FlyingFox and its FlyingSocks module use structured concurrency, task groups and async sequences to avoid blocking calls, including a low-level look at kqueue and epoll for non-blocking socket notifications. The talk wraps up with hard-won lessons on testing asynchronous Swift code reliably. From Melbourne CocoaHeads No. 165 — May 2023    • Melbourne CocoaHeads No. 165 — May 2023   Chapters: 0:00 Intro 2:20 What is FlyingFox 4:38 Alternatives: SwiftNIO & Swift System 5:49 Structured concurrency & task tree 10:40 Async sequences 12:41 Blocking I/O & FlyingSocks internals 22:58 Testing lessons learned 31:08 Q&A 35:08 Outro --- Melbourne CocoaHeads — a community of iOS & macOS developers in Melbourne, Australia. https://www.melbournecocoaheads.com/