https://github.com/dc0d/workerpool
A workerpool that can get expanded & shrink dynamically.
https://github.com/dc0d/workerpool
concurrency extra-workers go golang goroutine initial-workers pool worker-pool
Last synced: about 1 month ago
JSON representation
A workerpool that can get expanded & shrink dynamically.
- Host: GitHub
- URL: https://github.com/dc0d/workerpool
- Owner: dc0d
- License: mit
- Created: 2015-12-17T08:06:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-03-23T09:14:56.000Z (about 4 years ago)
- Last Synced: 2025-03-26T07:23:11.023Z (about 2 months ago)
- Topics: concurrency, extra-workers, go, golang, goroutine, initial-workers, pool, worker-pool
- Language: Go
- Homepage:
- Size: 55.7 KB
- Stars: 53
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# workerpool
[](http://opensource.org/licenses/MIT) [](https://pkg.go.dev/github.com/dc0d/workerpool/v5) [](https://goreportcard.com/report/github.com/dc0d/workerpool) [](https://codeclimate.com/github/dc0d/workerpool/maintainability) [](https://codeclimate.com/github/dc0d/workerpool/test_coverage)
This Go Module contains an implementation of a workerpool which can get expanded & shrink dynamically. Workers can get added when needed and get dismissed when no longer are needed. Of-course this workerpool can be used just as a simple one with a fixed size.
Examples can be seen inside documents.
## add as dependency modult
In the `go.mod` file of your code:
```
module github.com/user/projectgo 1.15
require (
github.com/dc0d/workerpool/v5 v5.0.1...
)
```And in the code, import it as:
```go
import "github.com/dc0d/workerpool/v5"
```