@staticmethod
def _setReturnValuesForPromises(target, returnValues, jobStore):
    """
        Sets the values for promises using the return values from the target's
        run function.
        """
    for i in target._rvs.keys():
        if isinstance(returnValues, tuple):
            argToStore = returnValues[i]
        else:
            if i != 0:
                raise RuntimeError(
                    'Referencing return value index (%s) that is out of range: %s'
                     % (i, returnValues))
            argToStore = returnValues
        target._rvs[i]._storeValue(argToStore, jobStore)
