code: def raise_exception(self, exception):
          
          self.__data = None
          self.__exception = exception
          self.__event.set()
docs: Raises an exception in wait()
  
          :param exception: An Exception object