parameters: (self)
return_statement: return t.res
docstring: Encapsulate the run function to exit normally
docstring_summary: Encapsulate the run function to exit normally
docstring_tokens: Encapsulate the run function to exit normally
function: def transform(self):
          """
          Encapsulate the run function to exit normally
          """
  
          t = ExceptionThread(target=self.run)
          t.daemon = True
          t.start()
          t.join()
          if t.exitcode != 0:
              raise t.exception
          return t.res
function_tokens: def transform ( self ) : t = ExceptionThread ( target = self . run ) t . daemon = True t . start ( ) t . join ( ) if t . exitcode != 0 : raise t . exception return t . res