Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

Main fiber shutdown joins spawned children

Platform spec ADR

Main fiber shutdown joins spawned children

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki

Process exit must not leak running fibers that share the GC heap. Fire-and-forget tasks still need defined failure behavior.

RuleDetail
Main fibermain() runs on fiber 0; scheduler starts before entry
Normal exitWhen main returns, runtime Joins every spawned fiber that was not Detached
DetachDetach fibers are not joined at shutdown
Detach panicUnjoined Detach child panic still aborts the process
Pool shutdownAfter joins complete, worker thread pool stops

Matches D-CORE-CONC-0004.

Hosts and tests must account for shutdown latency from outstanding joins.

Runtime main harness; corelib concurrency shutdown tests.