[Twisted-Python] cleanup at reactor.stop

Henning.Ramm at mediapro-gmbh.de Henning.Ramm at mediapro-gmbh.de
Mon Apr 4 10:16:07 EDT 2005

>>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.

More information about the Twisted-Python mailing list