Destroyed Q&A (markdown)

Yury Selivanov 2016-07-12 22:43:51 -04:00
parent f48eaf4afb
commit a8fb8cadad
1 changed files with 0 additions and 13 deletions

13
Q&A.md

@ -1,13 +0,0 @@
### How to use uvloop with Tornado?
Install uvloop event policy before calling `AsyncIOMainLoop().install()`:
```python
from tornado.platform.asyncio import AsyncIOMainLoop
import asyncio
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
AsyncIOMainLoop().install()
asyncio.get_event_loop().run_forever()
```