mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-12-06 01:33:53 +03:00
use asyncio in place of aio_loop (fixes #3717)
This commit is contained in:
parent
ccedf4ad0b
commit
2cefbd77ed
|
|
@ -53,7 +53,7 @@ def callback(func):
|
||||||
def wrapped(*args, **kwargs):
|
def wrapped(*args, **kwargs):
|
||||||
result = func(*args, **kwargs)
|
result = func(*args, **kwargs)
|
||||||
if inspect.iscoroutine(result):
|
if inspect.iscoroutine(result):
|
||||||
aio_loop.create_task(result)
|
asyncio.create_task(result)
|
||||||
|
|
||||||
return wrapped
|
return wrapped
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user