-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configurable task queue size to GoPool
- 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. Signed-off-by: Daniel Hu <[email protected]>
- Loading branch information
1 parent
3e13b06
commit bf1ff45
Showing
5 changed files
with
91 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters