[Twisted-web] Having reactor run at the main thread make things harder for late adopters

Andrew McNabb amcnabb at mcnabbs.org
Wed Nov 5 10:08:23 EST 2008

On Wed, Nov 05, 2008 at 03:11:08PM +1100, Andrew Bennetts wrote:
> The documentation could perhaps be clearer about this (that document implies,
> but doesn't directly state, that there's only one reactor instance).

I've always struggled with reactor being a singleton.  It makes it very
difficult to use Twisted on a small scale in a larger existing project.
Sometimes it would be really nice to stop a reactor and later start
another one.  Unit testing is one of several situations where this can
be a problem.

I suppose this wouldn't be quite as severe of a problem if it were easy
to restart a stopped reactor, but even then, it would be nice to be able
to have two threads that each have their own reactor.  But I guess I'm
just ranting now. :)

Andrew McNabb
PGP Fingerprint: 8A17 B57C 6879 1863 DE55  8012 AB4D 6098 8826 6868
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-web/attachments/20081105/c52d9ce4/attachment.pgp

More information about the Twisted-web mailing list