~/talk

Structured Concurrency: Managing the Hierarchical Cancelation and Error Handling

slides:none on file

Demo server and repo called Easy Racer exercise 11 structured-concurrency obstacles with real code in Java (Loom + StructuredTaskScope), jOckS, Scala (ox), Rust (tokio), Kotlin (coroutines/arrow), Python asyncio, TypeScript effects and ZIO-style libs. Claims: hierarchical scopes cancel losers, support Scoped Values, handle timeouts and resource cleanup, and enable hedging. The project proves virtual threads scale to 10,000 concurrent requests, shows shutdown-on-success vs shutdown-on-failure semantics, and verifies cancellation actually closes connections.

AI-written summary · about

  1. 0:00Introduction to structured concurrency
  2. 1:04What is structured concurrency
  3. 5:20Common use cases for races
  4. 8:08Introducing Easy Racer project
  5. 9:30Three approaches to structured concurrency
  6. 11:14Scenario one: Basic race
  7. 15:40Scenario one demo and explanation
  8. 17:35Real-world race use cases
  9. 21:13Direct style implementations
  10. 22:40Scope driven implementations
  11. 23:43Java Loom structured concurrency
  12. 27:55Effect-oriented implementations
  13. 30:26Scenario two: Error handling
  14. 33:18Java Loom error handling demo
  15. 35:30Kotlin coroutines limitations
  16. 39:43Scenario three: 10,000 concurrent requests
  17. 40:54Why use 10,000 concurrent requests
  18. 43:49Java jocks direct style
  19. 45:12Scenario four: Timeouts
  20. 48:26Timeouts as races against time
  21. 49:55Scenario eight: Resource management
  22. 53:30Java resource management demo
  23. 55:23Scenario seven: Hedging explained
  24. 57:09Hedging implementation demo
  25. 59:02Scoped values in Loom
  26. 1:00:05Scoped values demo
  27. 1:01:30Resources and closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.