execution_resource_access.bend source
execution_resource_access.bend on the hub · documented module
import Baseimport ./execution_resource_store.bend as Storeimport ./change_tick.bend as Ticktype Reader<-H:Type,-V:Data> is Type: Reader{get:H -> H & Store.Lookup<V>} UnsupportedReader{}type Writer<-H:Type,-P:Type,-V:Data> is Type: Writer{read:Reader<H,V>,own:@-Out:Type -> H -> (P -> P & Out) -> H & Store.Edit<P,Out>,own_at:@-Out:Type -> H -> (Tick.Tick -> P -> P & Out) -> H & Store.Edit<P,Out>} UnsupportedWriter{}def Reads(~V:Data,H:Type) -> Type:Reader<H,V>def Writes(~P:Type,~V:Data,H:Type) -> Type:Writer<H,P,V>