Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

OnCancelled on Fiber handle only

Platform spec ADR

OnCancelled on Fiber handle only

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki

Authors should not declare cancellation events on arbitrary spawn closures.

RuleDetail
PlacementOnCancelled on `Fiber<T>` handle from spawn only
Spawn entryOrdinary `fn(...) -> T`; does not declare OnCancelled
Handle`Fiber<T>` struct wrapping runtime builtins

Lowering wires cancel slot from handle metadata.

Semantic + lowering tests for spawn.