-
Notifications
You must be signed in to change notification settings - Fork 22
Permalink
Loading
Choose a base ref
{{ refName }}
default
Loading
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: devchat-ai/gopool
base: v0.3.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: devchat-ai/gopool
compare: v0.4.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 9 commits
- 7 files changed
- 2 contributors
Commits on Jul 26, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6929bfd - Browse repository at this point
Copy the full SHA 6929bfdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9dde896 - Browse repository at this point
Copy the full SHA 9dde896View commit details
Commits on Jul 27, 2023
-
Add Task Retry feature documentation and unit test
- Added English and Chinese documentation for the Task Retry feature in README.md and README_zh.md respectively. - Included an example of how to use the Task Retry feature in GoPool. - Added a unit test for the Task Retry feature in gopool_test.go. - The unit test checks that a task is retried the correct number of times. Signed-off-by: Daniel Hu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d61e43f - Browse repository at this point
Copy the full SHA d61e43fView commit details -
Update task examples in README.md and README_zh.md
- Updated the task examples in README.md and README_zh.md to return a result and an error. - This change reflects the updated task signature in GoPool. Signed-off-by: Daniel Hu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b109a03 - Browse repository at this point
Copy the full SHA b109a03View commit details -
Update go get command in readme
Signed-off-by: Daniel Hu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d1a07e8 - Browse repository at this point
Copy the full SHA d1a07e8View commit details
Commits on Aug 9, 2023
-
Notify adjustWorkers to exit to prevent ticker resource leak
hanhongjun committedAug 9, 2023 Configuration menu - View commit details
-
Copy full SHA for 61a9747 - Browse repository at this point
Copy the full SHA 61a9747View commit details -
Merge pull request #2 from oliver258/ticker_leak
Notify adjustWorkers to exit to prevent ticker resource leak
Configuration menu - View commit details
-
Copy full SHA for 1d136d7 - Browse repository at this point
Copy the full SHA 1d136d7View commit details -
Refactor goroutine pool to use context for graceful exit
- Replace `exitChan` with `context.Context` and `context.CancelFunc` in `goPool` struct. - Create a cancellable context in `NewGoPool` function and store the context and cancel function in `goPool` struct. - Call the cancel function in `Release` method to notify all goroutines to exit. - Listen to the Done channel of the context in `adjustWorkers` method to exit the goroutine when the context is cancelled. Signed-off-by: Daniel Hu <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2ea0ed3 - Browse repository at this point
Copy the full SHA 2ea0ed3View commit details -
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]>
Configuration menu - View commit details
-
Copy full SHA for 98d2a09 - Browse repository at this point
Copy the full SHA 98d2a09View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.3.0...v0.4.0