From 6e24e88eb87f7c0993d7b2dad024a1a66c1e2c75 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Thu, 25 Apr 2019 12:44:57 -0400 Subject: [PATCH] A better uvloop.install() example --- README.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.rst b/README.rst index 4c9bd3e..57dd653 100644 --- a/README.rst +++ b/README.rst @@ -53,9 +53,15 @@ manually creating an asyncio event loop: .. code:: python + import asyncio import uvloop + async def main(): + # Main entry-point. + ... + uvloop.install() + asyncio.run(main()) Building From Source