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
我有一个提供naga牌谱解析服务的插件 nonebot-plugin-nagabus 。解析需要消耗点数,换句话说就是要给naga送钱。所以希望退出时等待用户请求处理完毕再退出,否则用户消耗了点数又没拿到结果。
当用户退出时,不希望打断当前正在执行的matcher,希望能够等待执行完毕后再退出
目前是通过hook丑陋地实现的( https://github.com/bot-ssttkkl/ssttkkl-nonebot-utils/blob/master/ssttkkl_nonebot_utils/interceptor/with_graceful_shutdown.py ),希望nb官方能够提供支持
The text was updated successfully, but these errors were encountered:
这个问题其实在之前改到结构化并发的时候就实现了,但是由于anyio的问题,这个分支最后被废弃了
Sorry, something went wrong.
No branches or pull requests
希望能解决的问题
我有一个提供naga牌谱解析服务的插件 nonebot-plugin-nagabus 。解析需要消耗点数,换句话说就是要给naga送钱。所以希望退出时等待用户请求处理完毕再退出,否则用户消耗了点数又没拿到结果。
描述所需要的功能
当用户退出时,不希望打断当前正在执行的matcher,希望能够等待执行完毕后再退出
目前是通过hook丑陋地实现的( https://github.com/bot-ssttkkl/ssttkkl-nonebot-utils/blob/master/ssttkkl_nonebot_utils/interceptor/with_graceful_shutdown.py ),希望nb官方能够提供支持
The text was updated successfully, but these errors were encountered: