Skip to content
New issue

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

使用 piscina 实现不阻塞的 runInBackground #5359

Open
2 tasks
fengmk2 opened this issue Sep 19, 2024 · 0 comments
Open
2 tasks

使用 piscina 实现不阻塞的 runInBackground #5359

fengmk2 opened this issue Sep 19, 2024 · 0 comments

Comments

@fengmk2
Copy link
Member

fengmk2 commented Sep 19, 2024

请详细告知你的新解决思路(Your new RFCs):

https://github.com/piscinajs/piscina

目前的 runInBackground 是在 worker 进程或者 agent 进程执行的,如果是 cpu 密集型,那么还是会阻塞当前 worker 的处理速度下降。

_runInBackground(scope) {

跟进类型(Follow-up Types):

  • 这是某个任务
  • 这是一个具体的 PR 的地址(URL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant