Trees | Indices | Help |
---|
|
1 ''' 2 A couple useful thread related toys... 3 ''' 4 5 import threading 68 ''' 9 A decorator which fires a thread to do the given call. 10 11 NOTE: This means these methods may not return anything 12 and callers may not expect sync behavior! 13 ''' 14 def dothread(*args, **kwargs): 15 thr = threading.Thread(target=func, args=args, kwargs=kwargs) 16 thr.setDaemon(True) 17 thr.start()18 return dothread 19
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Nov 16 18:22:25 2012 | http://epydoc.sourceforge.net |