使用Python 3.8的asyncio特性

This commit is contained in:
John Smith
2023-07-29 12:48:57 +08:00
parent e478959a1b
commit 63f541b87e
8 changed files with 37 additions and 36 deletions

View File

@@ -9,7 +9,7 @@ VERSION = 'v1.6.2'
def check_update():
asyncio.ensure_future(_do_check_update())
asyncio.get_event_loop().create_task(_do_check_update())
async def _do_check_update():