Structured Concurrency: Managing the Hierarchical Cancelation and Error Handling
summary
Introduces Structured Concurrency with concrete code in Java Kotlin and Scala and a public repo that provides 11 obstacle courses and 20+ implementations; demonstrates Project Loom JDK25 scope API with virtual threads, Kotlin coroutines direct style, and effect libraries; shows explicit claims about cancellation semantics, resource cleanup, timeouts and error-join behaviors, assembles the expected "rig ght" from 10 concurrent requests with five failures, scales to 10,000 connections to validate cancellation, and documents Scoped Values and working examples in EasyRacer.
AI-written summary · about
chapters (13)
- 0:00Structured concurrency intro
- 7:11EasyRacer project
- 10:01Kotlin example scenario 9
- 17:22Java Loom structured concurrency
- 22:09Scala Kio effect approach
- 25:03Understanding races in concurrency
- 26:28Kotlin coroutines race scenario 1
- 31:04Java Loom race impl
- 33:12Scala Ox race
- 34:16Error handling in races scenario 2
- 37:48Resource management scenario 3
- 39:13Timeouts and nested scopes scenario 4
- 40:18Further reading
related talks
39mStructured Concurrency: The paradigm shift that changes modern development
40mConcurrency made easy with Kotlin Coroutines
37mCoroutines! Gotta catch 'em all!
43mCoroutines for Java Developers
47mKotlin Coroutines
49mLaunching Into Coroutines
49mKotlin Coroutines in Practice
50mAsync Showdown: Java Virtual Threads vs. Kotlin Coroutines
