A better uvloop.install() example

This commit is contained in:
Yury Selivanov 2019-04-25 12:44:57 -04:00
parent c181ecd333
commit 6e24e88eb8
1 changed files with 6 additions and 0 deletions

View File

@ -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