Opened 5 years ago

Last modified 5 years 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 5 years 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 5 years ago by Craig Rodrigues

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