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: Returns:
T: 数据 T: 数据
""" """
print("等待接收数据")
loop = asyncio.get_running_loop() loop = asyncio.get_running_loop()
data = await loop.run_in_executor(None, self.receive) data = await loop.run_in_executor(None, self.receive)
print("接收到数据")
return data return data
def on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]: def on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]:

View File

View File

@ -1,18 +0,0 @@
# -*- coding: utf-8 -*-
"""
Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved
@Time : 2024/8/11 下午8:22
@Author : snowykami
@Email : snowykami@outlook.com
@File : reloader.py.py
@Software: PyCharm
"""
from liteyuki.plugin import PluginMetadata, PluginType
__plugin_meta__ = PluginMetadata(
name="重启",
author="snowykami",
description="进程管理器,用于管理子进程",
type=PluginType.MODULE
)