Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

Main fiber and process shutdown

Platform spec ADR

Main fiber and process shutdown

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki

Process lifetime must be defined when main returns while child fibers still run.

RuleDetail
Mainmain() runs on fiber 0
ShutdownWhen main returns, runtime Joins spawned fibers that were not Detached
DetachDetach waives parent Join; child panic still aborts process
LeakSpawn without Join or Detach before main ends → conformance warning in v0.2 tests

Future recovery policies require a new ADR; v1 aborts on undetached child panic.

Runtime shutdown tests; conformance warnings catalog.