mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 17:13:56 +00:00
Enable uvloop if available
This commit is contained in:
parent
562e339262
commit
57f6d7d9a5
1 changed files with 8 additions and 0 deletions
|
|
@ -5,6 +5,14 @@ from .dispatcher import filters
|
|||
from .dispatcher.dispatcher import Dispatcher
|
||||
from .dispatcher.router import Router
|
||||
|
||||
try:
|
||||
import uvloop as _uvloop
|
||||
|
||||
_uvloop.install()
|
||||
except ImportError: # pragma: no cover
|
||||
_uvloop = None
|
||||
|
||||
|
||||
__all__ = (
|
||||
"__api_version__",
|
||||
"__version__",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue