From a8fb8cadadfd6ec8f2a803ed5c86d925a4edb082 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Tue, 12 Jul 2016 22:43:51 -0400 Subject: [PATCH] Destroyed Q&A (markdown) --- Q&A.md | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 Q&A.md diff --git a/Q&A.md b/Q&A.md deleted file mode 100644 index 2cf01f2..0000000 --- a/Q&A.md +++ /dev/null @@ -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() -``` \ No newline at end of file