def reuse_automatic
bendvy-ecs-core@0.1.0.3 · execution_deferred_settings.bend:121
import bendvy-ecs-core@0.1.0.3/execution_deferred_settings.bend as ExecutionDeferredSettings
import Base
121def reuse_automatic(before:U32,after:U32,distance:Nat,choice:Maybe<&2,U32>,+graph:Graph) -> GraphResult:
122 match choice graph:
123 case Some{id} graph:GraphReady{connect(before,after,id,graph)}
124 case None{} Graph{+nodes,edges,syncs,automatic}:allocated(before,after,distance,available(nodes),Graph{nodes,edges,syncs,automatic})