| |
| | ASPN : Python Cookbook : EventQueue class to queue function calls (Site not responding. Last check: 2007-10-10) |
 | | ''' print >> sys.stderr, 'EventQueue event raised exception (', function, a, kw or {}, '):', error def push(self, function, a=(), kw=None): ''' queue the call to function, return the number of the call. |
 | | I know that list.append is atomic, so I assume there are no issues with EventQueue.push, though I have not tested it extensively. |
 | | It is likely that you will want to queue all calls to particular methods or functions, hence the decorator. |
| aspn.activestate.com /ASPN/Cookbook/Python/Recipe/496894 (291 words) |
|