1
0
forked from bot/app

📝 新增开发规范

This commit is contained in:
2024-09-01 10:51:31 +08:00
parent ee1ae5a071
commit 433c6b3b85
3 changed files with 0 additions and 20 deletions

View File

@ -138,10 +138,8 @@ class Channel(Generic[T]):
Returns:
T: 数据
"""
print("等待接收数据")
loop = asyncio.get_running_loop()
data = await loop.run_in_executor(None, self.receive)
print("接收到数据")
return data
def on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]: