def relation_observe

bendvy-ecs-core@0.1.0.4 · ordinary_app_resource_field_declaration.bend:124

import bendvy-ecs-core@0.1.0.4/ordinary_app_resource_field_declaration.bend as OrdinaryAppResourceFieldDeclaration
import Base
import bendvy-ecs-core@0.1.0.4/ordinary_app_relation.bend as Relation
import bendvy-ecs-core@0.1.0.4/relation_failure_reader.bend as RelationDecl

124# Advanced observation route returning the relation World with the declared
125# relation's descriptor and projected rows. It uses the ordinary relation
126# observer; it does not consume an application failure-reader cursor.
127def relation_observe(~S:Data,~C:Type,~R:Type,~E:Data,~relation:RelationDecl.Declaration<S>,world:Relation.World(~S,~C,~R,~E)) -> Relation.World(~S,~C,~R,~E) & Relation.View<S>:
128  relation_viewed(~S,~C,~R,~E,Relation.observe(~S,~C,~R,~E,~relation,~Relation.builtin_row(~S),world))

Uses (7)

Used by (1)