mirror of https://github.com/MagicStack/uvloop.git
A better uvloop.install() example
This commit is contained in:
parent
c181ecd333
commit
6e24e88eb8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue