RE: [Twisted-Python] cleanup at reactor.stop
4 Apr 2005 4 Apr '05
Is there something like reactor.runAtShutdown() or how should
I do this? You can hook into the reactor by registering a system event callback. See twisted.internet.interfaces.IReactorCore's addSystemEventTrigger, removeSystemEventTrigger and fireSystemEvent.
You may need to grep the Twisted code to find out all the events that are actually fired but the one you want is "shutdown".
Thank you. It works. I just found these methods myself, but was not sure if they are the right way. (I always get lost in the API docs - I find it strange to look after internet.reactor at internet.interfaces.IReactorCore).
Best regards, Henning Hraban Ramm Südkurier Medienhaus / MediaPro Support/Admin/Development Dept.
Age (days ago)
Last active (days ago)