~/talk

Make Your Code Parallel with the Structured Concurrency API

Talkat Jfokus 2026 · 2026-02-02..02-04· [java, concurrency]
slides:none on file

Structured Concurrency arrives as a preview API (structured task scopes in JDK26 preview) that pairs StructuredTaskScope with virtual threads and scope values to launch parallel network requests, produce meaningful stack traces that point into the submitted lambda, and auto-clean threads when the scope closes. Code forks tasks, calls join (or uses a configurable Joiner strategy), and close interrupts remaining threads; timeouts can cancel or return partial results. Virtual threads are cheap, long in‑memory computations are discouraged, and incorrect onComplete code risks races.

AI-written summary · about

  1. 0:00Project Loom and structured concurrency
  2. 4:25Problems Project Loom solves
  3. 9:47Thread locals vs scope values
  4. 13:26Goto and concurrency issues
  5. 17:21Structured concurrency fixes threads
  6. 24:04Structured concurrency API deep dive
  7. 30:06Configuring task scope joiner
  8. 35:46Callbacks in structured concurrency
  9. 40:18Handling results and exceptions
  10. 46:39Summary and next steps
~/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.