Unlike structured concurrency, which has some deep runtime support, channels can be just a regular library. People who really want channels don't need to wait for them to be in the JDK.
Does Java's structured concurrency (in preview) offer any advantages to similar frameworks in other languages, in particular Golang's errgroup (https://pkg.go.dev/golang.org/x/sync/errgroup)?
Two things: ScopedValue inheritance and integration with platform observability (threads' relationship with structured concurrency is recorded in the runtime and observed by thread dumps, JFR, and JVM TI).
View all comments
Show parent comment
8
u/pron98 Apr 15 '26
Unlike structured concurrency, which has some deep runtime support, channels can be just a regular library. People who really want channels don't need to wait for them to be in the JDK.