Opened 7 months ago

Last modified 6 months ago

#9279 enhancement new

Twisted docs should have a doc explaining interop with asyncio

Reported by: Craig Rodrigues Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch:

Description (last modified by Craig Rodrigues)

In 9204, Alex mentioned:

I was interested in learning more about twisted/asyncio 
interoperability, and I had no idea where to click. I _assume_ 
it's somewhere in "Twisted Core", but even clicking on that
yielded nothing fruitful.

We need a proper document explaining interop with asyncio.

Change History (2)

comment:1 Changed 7 months ago by Craig Rodrigues

There is some documentation for using asyncio here:

Klein now has a good example for using async/await keywords:

The main asyncioreactor is documented at

The simplest example is:

import asyncio
from twisted.internet import asyncioreactor, reactor
loop = asyncio.get_event_loop()


Here is a fancy example which uses Python asyncio, uvloop, and twisted.web combined:

comment:2 Changed 6 months ago by Craig Rodrigues

Description: modified (diff)
Note: See TracTickets for help on using tickets.