code: def set_result(self, result):
          
          if result is None:
              self._result = NONE_RESULT
          else:
              self._result = result
          self._event.set()
          self._invoke_callbacks()
docs: Sets the result of the Future.
  
          :param result: Result of the Future.