Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 2.06 KB

asyncio.rst

File metadata and controls

59 lines (40 loc) · 2.06 KB

tornado.platform.asyncio --- Bridge between asyncio and Tornado

tornado.platform.asyncio

3.2

This module integrates Tornado with the asyncio module introduced in Python 3.4 (and available as a separate download for Python 3.3). This makes it possible to combine the two libraries on the same event loop.

Most applications should use AsyncIOMainLoop to run Tornado on the default asyncio event loop. Applications that need to run event loops on multiple threads may use AsyncIOLoop to create multiple loops.

Note

Tornado requires the ~asyncio.BaseEventLoop.add_reader family of methods, so it is not compatible with the ~asyncio.ProactorEventLoop on Windows. Use the ~asyncio.SelectorEventLoop instead.