Updated Home (markdown)

Yury Selivanov 2016-07-12 22:43:42 -04:00
parent 4072967411
commit f48eaf4afb
1 changed files with 15 additions and 1 deletions

16
Home.md

@ -1 +1,15 @@
Welcome to the uvloop wiki!
# Q & A
### 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()
```