diff --git a/Home.md b/Home.md index d61d213..ffc91a9 100644 --- a/Home.md +++ b/Home.md @@ -1,6 +1,17 @@ # Q & A +### How to use uvloop in an asyncio application? + +Just install the uvloop event policy: + +```python +import asyncio +import uvloop +asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) +``` + + ### How to use uvloop with aiohttp+gunicorn? You have to use a special gunicorn worker class that aiohttp bundles since 0.22.0: