BundleBatch.finish: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/bundle_batch.bend as BundleBatch Lines 97-100 of bendvy-ecs-core@0.1.0.4/bundle_batch.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/bundle_batch.bend&start_line=97&end_line=100 import Base import bundle_delivery.bend as B import world.bend as W import transaction.bend as T import commands.bend as Cmd def finish(~S:Data,~Store:Type,~R:Type,~E:Data,~P:Type,~Error:Data,~attempt:W.World -> W.Handle -> P -> B.Delivery,P>,~recover:W.World -> P -> W.WorldError -> W.World,batch:Batch,outcome:T.Outcome) -> Finished: match batch outcome: case Batch{tx,prepared} T.Success{}: committed(~S,~Store,~R,~E,~P,~Error,Cmd.tx_finish(~S,~Store,~R,~E,~Error,stage(~S,~Store,~R,~E,~P,~attempt,~recover,List.reverse(&1,Prepared,prepared),tx),T.Success{})) case Batch{tx,prepared} T.Failure{+error}: failed(~S,~Store,~R,~E,~P,~Error,originals(~S,~P,List.reverse(&1,Prepared,prepared)),error,Cmd.tx_finish(~S,~Store,~R,~E,~Error,tx,T.Failure{error})) Uses (14): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/bundle_batch.bend&name=Batch https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/bundle_batch.bend&name=Finished https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/bundle_batch.bend&name=Prepared https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/bundle_batch.bend&name=committed https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/bundle_batch.bend&name=failed https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/bundle_batch.bend&name=originals https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/bundle_batch.bend&name=stage https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/bundle_delivery.bend&name=Delivery https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/commands.bend&name=tx_finish https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/transaction.bend&name=Outcome https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=Handle https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=World https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=WorldError