Skip to content
Beskid The Beskid Book

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

11.4 Corelib concurrency

The corelib_concurrency package—Fiber, Channel, Join, and where to read normative API law.

Corelib concurrency

Language keywords define spawn and typing rules. Standard library types make handles usable without everyone reimplementing the same structs.

Normative hub: Concurrency package.

Expected surfaces (names per spec):

  • Fiber<T> — spawn handle, OnCancelled, join/cancel operations
  • Channel<T> — cross-fiber messaging
  • WaitGroup, Hub — structured coordination

Corelib lives in the corelib package identity (compiler/corelib / beskid_corelib workspace)—not a random Rust crate beside the compiler.

LayerOwns
Language meta — Fibers and spawnspawn syntax, diagnostics, capture rules
Execution — Fiber schedulerStacks, scheduler, shutdown join
Core library — Concurrency packageUser-facing structs and methods

Lowering and runtime tie to beskid_codegen, beskid_engine, beskid_runtime, and abfall for GC while fibers run—see Crate-to-spec anchors.

12. The normative bible (and why we bothered)