[Twisted-Python] reactor.callLater() or reactor.callFromThread() when sending msg just before quit
gabriel.rossetti at arimaz.com
Tue Dec 8 07:50:47 EST 2009
I have to send a message just before my service quits, but sometimes the
reactor quits before the msg is sent.
I was wondering if I should user reactor.callLater like so :
(which I don't really like), or use reactor.callFromThread like so :
(self.stop calls reactor.stop at some point).
I really need for that msg to be sent before the reactor shuts down.
More information about the Twisted-Python