Public Member Functions | |
def | __init__ |
def | run |
Public Attributes | |
callback | |
func | |
args | |
kwds | |
result | |
exception | |
start_time | |
stop_time |
Asynchronous function call thread. The result of call func(*args,**kwds) is stored in the result attribute. If an exception is raised the exception object is stored in the exception attribute. Otherwise the exception attribute is None. The caller is notified with the callback(t) where t is this thread object.
Definition at line 10 of file AsyncCallThread.py.
def python::AsyncCallThread::AsyncCallThread::__init__ | ( | self, | ||
callback, | ||||
func, | ||||
args, | ||||
kwds | ||||
) |
def python::AsyncCallThread::AsyncCallThread::run | ( | self | ) |
Definition at line 24 of file AsyncCallThread.py.
00029 : 00030 self.start_time = time.time() 00031 00032 try: 00033 print "Making asynchronous call:",self.func.__name__,self.args,self.kwds 00034 self.result = self.func(*self.args,**self.kwds) 00035 except Exception,x: 00036 self.exception = x
Definition at line 16 of file AsyncCallThread.py.
Definition at line 14 of file AsyncCallThread.py.
Definition at line 19 of file AsyncCallThread.py.
Definition at line 15 of file AsyncCallThread.py.
Definition at line 17 of file AsyncCallThread.py.
Definition at line 18 of file AsyncCallThread.py.
Definition at line 20 of file AsyncCallThread.py.
Definition at line 21 of file AsyncCallThread.py.