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
710710
711711function mergeVariableStates! (
712712 dfg:: AbstractDFG ,
713- varLabel_state_pairs:: Vector{Pair{Symbol, VariableState}} ,
713+ varLabel_state_pairs:: Vector{<: Pair{Symbol, <: VariableState}} ,
714714)
715715 cnt = asyncmap (varLabel_state_pairs) do (varLabel, state)
716716 return mergeVariableState! (dfg, varLabel, state)
717717 end
718718 return sum (cnt)
719719end
720720
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+
721732function copytoVariableState! (
722733 dfg:: AbstractDFG ,
723734 variableLabel:: Symbol ,
You can’t perform that action at this time.
0 commit comments