code: def set_result(self, result):
          
          self._result = result
          self._state = self.FINISHED
docs: Sets the return value of work associated with the future.
  
          Should only be used by Task and unit tests.