Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

使用asyncio提供的异步进程API代替现在的开线程处理 #44

Closed
mnixry opened this issue Feb 17, 2022 · 1 comment · Fixed by #39
Closed

使用asyncio提供的异步进程API代替现在的开线程处理 #44

mnixry opened this issue Feb 17, 2022 · 1 comment · Fixed by #39
Assignees
Labels
enhancement New feature or request

Comments

@mnixry
Copy link
Owner

mnixry commented Feb 17, 2022

由于uvicorn>=0.17.0(即nonebot2>=2.0.0b2)之后, 它在Windows系统下采用了能兼容异步子进程调用的WindowsSelectorEventLoopPolicy. 因为这样, 我计划将本插件改为基于asyncio提供的异步进程调用, 以减少代码复杂程度

但是可能会带来未知的兼容性问题, 目前开个线程操作子进程虽然可能有未知Bug和性能问题, 但是兼容性应该是最好的

而且我本人使用的操作系统也不是Windows系统, 出现问题之后很难第一时间进行调试.

目前正在观望其他使用异步进程调用的插件在新版NoneBot上的运行情况

@mnixry mnixry added the enhancement New feature or request label Feb 17, 2022
@mnixry mnixry self-assigned this Feb 17, 2022
@mnixry mnixry linked a pull request Feb 17, 2022 that will close this issue
@mnixry
Copy link
Owner Author

mnixry commented Feb 21, 2022

这个问题看起来不是太乐观, 先关了

nonebot/nonebot2#830

@mnixry mnixry closed this as completed Feb 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant