Concurrency
Platform spec area
Concurrency
Spec standingStandard
No architecture decision records under adr/ for this feature yet. Standard features must
publish at least one ADR or keep a ## Decisions summary on the hub.
- No directly attached article pages for this node. Nested descendants exist deeper in this subtree.
0 revisions (git unavailable at build; counts may be empty)
No commits recorded for this path.
| Section id | Required | Found |
|---|---|---|
scope | yes | yes |
features | yes | yes |
Full tree: run pnpm verify:platform-spec-layout (writes src/generated/platform-spec-layout-report.json).
Scope
Cooperative fibers (goroutine-style), channels for fiber-to-fiber communication, and optional OS threads for preemptive parallelism live in a dedicated corelib workspace package (corelib_concurrency), not as deep abstraction layers inside the main prelude.
System.Threading exposes syscall-backed OS thread primitives. Concurrency (package root module) exposes Fiber<T>, Channel<T>, Hub, Mutex, and WaitGroup as structs that wrap runtime builtins—one thin layer, no parallel type hierarchies like .NET Task / TaskCompletionSource / IAsyncEnumerable.
Terminal and console code must use channels for cross-fiber delivery (see Console terminal events).