Local.dispose: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/local.bend as Local Lines 130-136 of bendvy-ecs-core@0.1.0.4/local.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/local.bend&start_line=130&end_line=136 import Base import bendvy-ecs-core@0.1.0.4/world.bend as W import bendvy-ecs-core@0.1.0.4/registration.bend as Reg # Remove the matching live registration, then consume L once with the # explicit disposeLocal callback and return its output. Refusal retains # instance/World without calling disposeLocal. Arbitrary callback effects # are outside ECS rollback; inspect the result instead of assuming disposal. def dispose(~S: Data,~C: Type,~R: Type,~E: Data,~L: Type,~Args: Type,~Error: Data,~Out: Type,~runner: W.World -> L -> Args -> Outcome,L,Error,Out>,~Disposed: Type,~disposeLocal: L -> Disposed,instance: Instance,world: W.World) -> Disposal: match instance: case Instance{+namespace,+id,+name,+access,local}: disposal(~S,~C,~R,~E,~L,~Args,~Error,~Out,~runner,~Disposed,~disposeLocal,Instance{namespace,id,name,access,local},Reg.remove(~S,~C,~R,~E,world,namespace,id,name,access)) Uses (6): https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/local.bend&name=Disposal https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/local.bend&name=Instance https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/local.bend&name=Outcome https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/local.bend&name=disposal https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/registration.bend&name=remove https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=World