Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

Channel and fiber errors use Result not panic

Platform spec ADR

Channel and fiber errors use Result not panic

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki

Panics as control flow for expected failure modes break contracts and LSP stability.

SurfaceRule
ChannelSend / ReceiveResult; TrySend / TryReceiveOption
FiberJoin`Result<T, FiberError>`; stack overflow → FiberError::StackOverflow at Join
MutexLock`Result<MutexGuard, MutexError>`; TryLockOption (None = would block)

v1: Lock may return Cancelled when fiber cancelled—no .NET-style poison.

Corelib API signatures; runtime integration tests.