parameters: (self, result)
docstring: Sets the return value of work associated with the future.
  
          Should only be used by Executor implementations and unit tests.
docstring_summary: Sets the return value of work associated with the future.
docstring_tokens: Sets the return value of work associated with the future .
function: def set_result(self, result):
          """Sets the return value of work associated with the future.
  
          Should only be used by Executor implementations and unit tests.
          """
          with self._condition:
              self._result = result
              self._state = FINISHED
              for waiter in self._waiters:
                  waiter.add_result(self)
              self._condition.notify_all()
          self._invoke_callbacks()
function_tokens: def set_result ( self , result ) : with self . _condition : self . _result = result self . _state = FINISHED for waiter in self . _waiters : waiter . add_result ( self ) self . _condition . notify_all ( ) self . _invoke_callbacks ( )