We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
翻阅Yiri的源码,发现MiraiRunner类的run方法里有:
try: asyncio.run(self._run()) except (KeyboardInterrupt, SystemExit): exit()
现在我有一个自己写的异步任务:
async def test(): while 1: print("hello") await asyncio.sleep(3)
我该如何加进去?
The text was updated successfully, but these errors were encountered:
在0.2.6之后,YiriMirai有了 add_backgroud_task 功能。
add_backgroud_task
具体用法请参考文档:https://yiri-mirai.wybxc.cc/docs/basic/background_task
Sorry, something went wrong.
No branches or pull requests
翻阅Yiri的源码,发现MiraiRunner类的run方法里有:
现在我有一个自己写的异步任务:
我该如何加进去?
The text was updated successfully, but these errors were encountered: