g2cache
g2cache copied to clipboard
[suggest] struct or args majorization
https://github.com/kelvins-io/g2cache/blob/0098a51433a6b1ccd9947375db8f2d504bd9f3fe/grpool.go#L89-L100
对于 pool 对象,他本身存在 jobQueue chan. 可以去掉jobQueue 变量。 在 newWorker(int64(i), pool, jobQueue) 里面,可以从pool 中取出 jobQueue 变量。
新版本已经去掉