[Twisted-Python] Re: Other ways to integrate foreign event loops?
nathan.stocks at gmail.com
Thu Apr 3 16:32:23 EDT 2008
On Thu, Apr 3, 2008 at 1:35 PM, David Bolen <db3l.net at gmail.com> wrote:
> * During initialization, start reactor with reactor.startRunning()
> * At some periodic frequency, run reactor.iterate(0)
> * During termination, set up a reactor.callLater for reactor.stop, and
> then call reactor.mainLoop(). This was the cleanest way we found to
> permit all reactor finalization (events, final I/O, etc...).
That's exactly what I was looking for, thanks! I'll save this as the
technique to try if all else fails and the time comes that I've got to
deploy. Hopefully we'll just be able to figure out what's going on
and fix it before then.
More information about the Twisted-Python