Tags: devchat-ai/gopool
Tags
Introduce GoPool interface and update NewGoPool function - Introduced a new GoPool interface that includes all public methods of the goPool struct. - Updated the NewGoPool function to return the GoPool interface instead of the goPool struct. - This change makes the GoPool interface visible outside the package and allows for future extensions with different GoPool implementations. Signed-off-by: Daniel Hu <[email protected]>
Add Wait method to goPool and update usage in README and tests - Add a new Wait method to the goPool struct to allow waiting for all tasks to finish before releasing resources. - Update the README to reflect the new usage of the Wait method before calling the Release method. - Update all test cases to use the new Wait method before calling the Release method. - Update the go get command in the README to fetch a specific version of the library. Signed-off-by: Daniel Hu <[email protected]>