Visualising concurrency with Kotlin
summary
Shows how Kotlin coroutines actually work: the compiler breaks calls at the suspend keyword into continuations, enabling millions of lightweight tasks instead of OS threads and addressing the 10K connection problem. Demonstrates concrete APIs: produce/actor communicating over channels, fan‑out to many workers and fan‑in to a single saver. Live demo downloads images from a page with ~1000 coroutines, visualizes activity across an eight‑core dispatcher (uneven distribution), streams the state to a JavaScript UI over WebSocket — and it runs.
AI-written summary · about








