Use asyncio in place of aio_loop (#3724)

Fixes #3717.
This commit is contained in:
Aditya 2022-02-16 15:55:52 +05:30 committed by GitHub
parent ccedf4ad0b
commit af0ea638b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ def callback(func):
def wrapped(*args, **kwargs):
result = func(*args, **kwargs)
if inspect.iscoroutine(result):
aio_loop.create_task(result)
asyncio.create_task(result)
return wrapped