issues
search
devchat-ai
/
gopool
GoPool is a high-performance, feature-rich, and easy-to-use worker pool library for Golang.
MIT License
187
stars
26
forks
source link
Add configurable task queue size to GoPool
#15
Closed
daniel-hutao
closed
1 year ago
daniel-hutao
commented
1 year ago
Updated README.md and README_zh.md to reflect the new feature of configurable task queue size.
Added a new field 'taskQueueSize' in the 'goPool' struct to store the size of the task queue.
Modified the 'NewGoPool' function to initialize the task queue with the specified size.
Added a new function 'GetTaskQueueSize' to return the size of the task queue.
Updated the test file 'gopool_test.go' to include tests for the new feature.
Added a new option 'WithTaskQueueSize' in 'option.go' to allow users to set the size of the task queue when creating the pool.