[Twisted-Python] Cleanly shutting down Service

Itamar Shtull-Trauring itamar at itamarst.org
Mon Apr 3 11:34:16 EDT 2006


On Sun, 2006-04-02 at 23:01 -0400, Reed L. O'Brien wrote:

> reactor.addSystemEventTrigger('before', 'shutdown', func())
> 
> def func():
> 	doStuff...
> 
> closer?

# notice lack of parentheses after func:
reactor.addSystemEventTrigger('before', 'shutdown', func) 






More information about the Twisted-Python mailing list