Automatic enable uvloop if available.

This commit is contained in:
Alex Root Junior 2017-12-02 15:19:23 +02:00
parent 435b498d25
commit 250a636d6e

View file

@ -10,6 +10,15 @@ except ImportError as e:
from .utils.versions import Stage, Version
try:
import uvloop
except ImportError:
pass
else:
import asyncio
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
VERSION = Version(1, 0, 3, stage=Stage.DEV, build=0)
API_VERSION = Version(3, 5)