Re: [Twisted-Python] asyncio.reactor.install()

2018-12-18 Thread Jean-Paul Calderone
On Tue, Dec 18, 2018 at 7:43 PM Jeff Grimmett wrote: > This pattern works: > > > > *from twisted.internet import wxreactorreactor = wxreactor.install()* > The fact that a reactor is returned by install is a bit of a mistake and is not really part of the interface of *install.* For whatever reas

[Twisted-Python] asyncio.reactor.install()

2018-12-18 Thread Jeff Grimmett
This pattern works: *from twisted.internet import wxreactorreactor = wxreactor.install()* *endpoint = endpoints.TCP4ServerEndpoint(reactor, cfg.port)endpoint.listen(site)* This does not: *from twisted.internet import asyncioreactorreactor = asyncioreactor.install()* *factory = reactor.li