From dc793e5d8d2c2ea2d48a51f6b04c1518dd44c200 Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Sun, 31 May 2020 13:01:26 +0800 Subject: =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=83=A8=E5=88=86=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E4=BD=9C=E5=93=81=EF=BC=8C=E6=96=B0=E5=A2=9E=E7=96=AB=E6=83=85?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AyaBot/plugins/aio/__init__.py | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 AyaBot/plugins/aio/__init__.py (limited to 'AyaBot/plugins/aio/__init__.py') diff --git a/AyaBot/plugins/aio/__init__.py b/AyaBot/plugins/aio/__init__.py deleted file mode 100644 index 3cc81f0..0000000 --- a/AyaBot/plugins/aio/__init__.py +++ /dev/null @@ -1,8 +0,0 @@ -import asyncio -from functools import partial -from typing import Any - - -async def run_sync_func(func, *args, **kwargs) -> Any: - return await asyncio.get_event_loop().run_in_executor( - None, partial(func, *args, **kwargs)) -- cgit v1.2.3