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

关于协程池 #6

Closed
kaiscol opened this issue May 23, 2018 · 2 comments
Closed

关于协程池 #6

kaiscol opened this issue May 23, 2018 · 2 comments

Comments

@kaiscol
Copy link

kaiscol commented May 23, 2018

限制最大的goroutine数量(Pool.size)变大后对已经加入队列的jobs(queue队列任务)不会重新分配PoolWorker。
相反,pool.size字段变小需要PoolWorker回收后才能真正的限制到协和数量。
不知道上面的情况是否是设计的初衷?

@gqcn
Copy link
Member

gqcn commented May 24, 2018

我会在下一个版本中进行改进。

@gqcn
Copy link
Member

gqcn commented May 25, 2018

已改进并发布

@gqcn gqcn closed this as completed May 25, 2018
gqcn pushed a commit that referenced this issue Apr 17, 2019
gqcn pushed a commit that referenced this issue Apr 18, 2019
gqcn pushed a commit that referenced this issue Jun 19, 2019
gqcn pushed a commit that referenced this issue Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants