#NEWLINE# def _setReturnValuesForPromises( self , returnValues , jobStore ) : #NEWLINE# #INDENT# "\n        Sets the values for promises using the return values from the job's run function.\n        " #NEWLINE# for i in self . _rvs . keys ( ) : #NEWLINE# #INDENT# if ( i == None ) : #NEWLINE# #INDENT# argToStore = returnValues #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# argToStore = returnValues [ i ] #NEWLINE# #UNINDENT# for promiseFileStoreID in self . _rvs [ i ] : #NEWLINE# #INDENT# if jobStore . fileExists ( promiseFileStoreID ) : #NEWLINE# #INDENT# with jobStore . updateFileStream ( promiseFileStoreID ) as fileHandle : #NEWLINE# #INDENT# cPickle . dump ( argToStore , fileHandle , cPickle . HIGHEST_PROTOCOL )