Skip to content

Structured Concurrency

James Wang edited this page Jul 19, 2024 · 3 revisions
  • Structured Concurrency treats groups of related tasks running in different threads as a single unit of work. It streamlines error handling and cancellation, improves reliability, enhances observability and is a great match for virtual threads. In this session we will introduce the topic and the API that is currently in preview to support this feature.
  • Concurrency is structured when the syntactic code structure bounds the lifetime of threads. When new threads are spawned within a syntactic block, we can be sure that these threads are terminated when executing the block ends.

Go statement considered harmful

Clone this wiki locally