[Twisted-Python] Shutdown empty reactor?
Phillip J. Eby
pje at telecommunity.com
Fri Jul 11 16:14:10 MDT 2003
At 01:57 PM 7/11/03 -0400, Itamar Shtull-Trauring wrote:
>On Fri, 11 Jul 2003 12:18:42 -0400
>"Phillip J. Eby" <pje at telecommunity.com> wrote:
>
> > Is this something that could be added, or is there any general
> > interest in having idle reactors shut down? In principle, there is no
> > way for a running-on-empty reactor to do any further useful work, and
> > no way for it to be shut down, either. (If one is using threads, then
> > there is always a "waker" selectable present, which means that by
> > definition a reactor using threads is never "running on empty".)
>
>There may be scheduled calls (and some of these are module level, e.g.
>http and thus always present if that module is imported).
There's a getDelayedCalls() method available to see what scheduled calls
exist. I was looking for an official way to check for selectables.
More information about the Twisted-Python
mailing list