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