def scope_finished

bendvy-ecs-core@0.1.0.4 · compose.bend:245

import bendvy-ecs-core@0.1.0.4/compose.bend as Compose
import Base
import world.bend as W

245# Advanced engine adapter: execute a supplied handle list within one new Tx and
246# finish it, using cursor for every row. Preserves supplied order without itself
247# validating list provenance; hierarchy adapters perform their own live filtering.
248def scope_finished(~S:Data,~Store:Type,~R:Type,~E:Data,~U:Data,~Out:Data,owned:Bool,result:Executed<W.World<S,Store,R,E>,Error<U>,Out>) -> Executed<W.World<S,Store,R,E>,Error<U>,Out>:
249  match result:
250    case Executed{world,outcome,values}:Executed{W.finish_run(~S,~Store,~R,~E,owned,world),outcome,values}

Uses (5)

Used by (2)