Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

spawn returns Fiber handle not T

Platform spec ADR

spawn returns Fiber handle not T

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki

Authors need a single cooperative concurrency entry keyword with an explicit handle for cancellation and join.

RuleDetail
Keywordspawn introduces a child fiber
TypeExpression must type-check to a Fiber<T> handle for the entry return type T (not T directly)
Resultspawn must not return the entry value; use Join for Result<T, FiberError>
ContractThe handle shape is the corelib_concurrency Fiber<T> type required by lowering

Parser, semantic analysis, and codegen share one spawn contract with the concurrency package.

compiler/crates/beskid_analysis/; compiler/crates/beskid_codegen/ spawn lowering; Concurrency package.