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
706706
707707function mergeVariableStates! (
708708 dfg:: AbstractDFG ,
709- varLabel_state_pairs:: Vector{Pair{Symbol, VariableState}} ,
709+ varLabel_state_pairs:: Vector{<: Pair{Symbol, <: VariableState}} ,
710710)
711711 cnt = asyncmap (varLabel_state_pairs) do (varLabel, state)
712712 return mergeVariableState! (dfg, varLabel, state)
713713 end
714714 return sum (cnt)
715715end
716716
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+
717728function copytoVariableState! (
718729 dfg:: AbstractDFG ,
719730 variableLabel:: Symbol ,
You can’t perform that action at this time.
0 commit comments