#NEWLINE# def __init__( self , command_name , command_params , execute_method , agent = None ) : #NEWLINE# #INDENT# 'Construct an instance of AsyncCommandResult.\n\n        :param command_name: name of command to execute\n        :param command_params: parameters passed to command\n        :param execute_method: a callable to be executed asynchronously\n        :param agent: Optional: an instance of IronicPythonAgent\n        ' #NEWLINE# super ( AsyncCommandResult , self ) . __init__ ( command_params , command_params ) #NEWLINE# self . agent = agent #NEWLINE# self . execute_method = execute_method #NEWLINE# self . command_state_lock = threading . Lock ( ) #NEWLINE# thread_name = 'agent-command-{0}' . format ( self . id ) #NEWLINE# self . execution_thread = threading . Thread ( target = self . run , name = thread_name )