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 @@ -706,14 +706,25 @@ end
706
706
707
707
function mergeVariableStates! (
708
708
dfg:: AbstractDFG ,
709
- varLabel_state_pairs:: Vector{Pair{Symbol, VariableState}} ,
709
+ varLabel_state_pairs:: Vector{<: Pair{Symbol, <: VariableState}} ,
710
710
)
711
711
cnt = asyncmap (varLabel_state_pairs) do (varLabel, state)
712
712
return mergeVariableState! (dfg, varLabel, state)
713
713
end
714
714
return sum (cnt)
715
715
end
716
716
717
+ function mergeVariableStates! (
718
+ dfg:: AbstractDFG ,
719
+ variableLabel:: Symbol ,
720
+ states:: Vector{<:VariableState} ,
721
+ )
722
+ cnt = asyncmap (states) do state
723
+ return mergeVariableState! (dfg, variableLabel, state)
724
+ end
725
+ return sum (cnt)
726
+ end
727
+
717
728
function copytoVariableState! (
718
729
dfg:: AbstractDFG ,
719
730
variableLabel:: Symbol ,
You can’t perform that action at this time.
0 commit comments