RE: [Twisted-Python] cleanup at reactor.stop
4 Apr
2005
4 Apr
'05
2:16 p.m.
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.
7227
Age (days ago)
7227
Last active (days ago)
0 comments
1 participants
participants (1)
-
Henning.Ramm@mediapro-gmbh.de