Structured Concurrency: The paradigm shift that changes modern development
summary
Claims that structured concurrency gives every concurrent block a clear entry and exit and therefore automatic, reliable cancellation across hierarchies; demonstrates concrete tools—Kotlin coroutines (launch, async, coroutineScope), Python Trio/async constructs, Java Structured Concurrency, Flow operators—and shows how exception propagation cancels sibling subtasks. Provides evidence (course with 160 participants, debugger/Comet tooling) and concrete behaviors like coroutineScope awaits children completion and how replacing global scopes prevents leaks and unpredictable background work.
AI-written summary · about
chapters (21)
- 0:00Structured concurrency intro
- 1:29Introduction
- 2:12What is structured concurrency
- 4:24Kotlin coroutines
- 6:09Why coroutine scope
- 7:12Mechanisms behind
- 8:44Breaking structured concurrency
- 9:46Kotlin flows
- 10:49Five key benefits
- 11:10Cancellation made easy
- 13:55Cancellation on Android
- 17:06Exception handling
- 23:22Implicit scope wrong
- 23:44Configuration propagation
- 24:29Debugging benefits
- 27:02Structured vs goto
- 31:24Entry and exit points
- 32:28Test clarity example
- 33:55Real-time issues
- 37:49Summary
- 38:11Closing
related talks
41mStructured Concurrency: Managing the Hierarchical Cancelation and Error Handling
40mConcurrency made easy with Kotlin Coroutines
49mLaunching Into Coroutines
37mCoroutines! Gotta catch 'em all!
01h 03mUsing Kotlin Coroutines for Asynchronous and Concurrent Programming
43mCoroutines for Java Developers
11mKotlin Coroutines: Design and Implementation
47mKotlin Coroutines
