System.leave_outcome: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/system.bend as System Lines 54-58 of bendvy-ecs-core@0.1.0.4/system.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/system.bend&start_line=54&end_line=58 import Base import bendvy-ecs-core@0.1.0.4/world.bend as W # Leave the captured scope on either executed outcome; never rewind time. def leave_outcome(~S:Data,~C:Type,~R:Type,~E:Data,~Args:Type,~Error:Data,~Output:Type,~runner:W.World -> Args -> Outcome,Error,Output>,outcome:Outcome,Error,Output>) -> Outcome,Error,Output>: match outcome: case Succeeded{world,output}:Succeeded{W.leave_run(~S,~C,~R,~E,world),output} case Failed{world,error}:Failed{W.leave_run(~S,~C,~R,~E,world),error} Uses (3): https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/system.bend&name=Outcome 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=leave_run