def snapshot
import bendvy-ecs-core@0.1.0.4/machine.bend as Machineimport Base
82def snapshot(~S: Data,~M: Data,~V: Data,slot: Slot<S,M,V>) -> Snapshot<V>:
83 match slot:
84 case Missing{}: Unscheduled{}
85 case Present{_,pending,_,_}: snapshot_pending(~V,pending)