~/bend-docscommunity

execution_lifetime_scope_provider.bend source

execution_lifetime_scope_provider.bend on the hub · documented module

import Baseimport ./execution_lifetime_scope_store.bend as Storeimport ./execution_composer_layout.bend as Layoutimport ./execution_resource_policy.bend as Policy# Setup receives the namespace from the actual Factory/SchemaCreated context.def layout(~S:Data,key:String) -> Layout.Layout:  Layout.LayoutLeaf{Store.Store<S>,Store.View<S>,Store.project(~S),key,Policy.ProtectedLifetimeScope{S}}