[TransWarp] Stopping
peak.running.scheduler.UntwistedReactor
Phillip J. Eby
pje at telecommunity.com
Fri Jul 11 11:47:41 EDT 2003
At 04:39 PM 7/11/03 +0300, alexander smishlajev wrote:
>Phillip J. Eby wrote:
>>To be honest, I had never considered such a possibility, as every
>>application scenario I envisioned for using the reactor either has an
>>explicit shutdown command occurring, is explicitly time-bound (periodic
>>task runner), or is a "run forever" loop.
>
>are there any scenarios where reactor running without readers, writers and
>queued tasks makes sense?
Only multi-threaded scenarios, where another thread is running at the same
time as the (empty) reactor loop. A quick question, though... if you use
a Twisted reactor instead of the PEAK reactor, does *it* shut down?
One issue here is that since UntwistedReactor is an emulation of the basic
Twisted reactor functions, I'd like to keep its operations relatively
compatible.
More information about the PEAK
mailing list