File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -735,14 +735,25 @@ end
735
735
736
736
function mergeVariableStates! (
737
737
dfg:: AbstractDFG ,
738
- varLabel_state_pairs:: Vector{Pair{Symbol, VariableState}} ,
738
+ varLabel_state_pairs:: Vector{<: Pair{Symbol, <: VariableState}} ,
739
739
)
740
740
cnt = asyncmap (varLabel_state_pairs) do (varLabel, state)
741
741
return mergeVariableState! (dfg, varLabel, state)
742
742
end
743
743
return sum (cnt)
744
744
end
745
745
746
+ function mergeVariableStates! (
747
+ dfg:: AbstractDFG ,
748
+ variableLabel:: Symbol ,
749
+ states:: Vector{<:VariableState} ,
750
+ )
751
+ cnt = asyncmap (states) do state
752
+ return mergeVariableState! (dfg, variableLabel, state)
753
+ end
754
+ return sum (cnt)
755
+ end
756
+
746
757
function copytoVariableState! (
747
758
dfg:: AbstractDFG ,
748
759
variableLabel:: Symbol ,
You can’t perform that action at this time.
0 commit comments