(self)
Reimplemented from `QRunnable.run`
Reimplemented from `QRunnable.run`
Reimplemented from QRunnable . run
def run(self):
        """
        Reimplemented from `QRunnable.run`
        """
        try:
            if not self.future.set_running_or_notify_cancel():
                # future was cancelled
                return
            func, args, kwargs = self.task
            try:
                result = func(*args, **kwargs)
            except BaseException as ex: # pylint: disable=broad-except
                self.future.set_exception(ex)
            else:
                self.future.set_result(result)
        except BaseException:  # pylint: disable=broad-except
            log = logging.getLogger(__name__)
            log.critical("Exception in worker thread.", exc_info=True)
def run ( self ) : try : if not self . future . set_running_or_notify_cancel ( ) : # future was cancelled return func , args , kwargs = self . task try : result = func ( * args , * * kwargs ) except BaseException as ex : # pylint: disable=broad-except self . future . set_exception ( ex ) else : self . future . set_result ( result ) except BaseException : # pylint: disable=broad-except log = logging . getLogger ( __name__ ) log . critical ( "Exception in worker thread." , exc_info = True )