https://github.com/euskadi31/go-worker
Pool Worker in Go
https://github.com/euskadi31/go-worker
go golang golang-library pool-worker worker worker-pool workers
Last synced: about 1 month ago
JSON representation
Pool Worker in Go
- Host: GitHub
- URL: https://github.com/euskadi31/go-worker
- Owner: euskadi31
- License: mit
- Created: 2018-09-12T11:59:17.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-05-05T05:56:29.000Z (about 1 month ago)
- Last Synced: 2025-05-05T06:35:18.527Z (about 1 month ago)
- Topics: go, golang, golang-library, pool-worker, worker, worker-pool, workers
- Language: Go
- Size: 47.9 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Go Worker [](https://github.com/euskadi31/go-worker/releases/latest) [](https://godoc.org/github.com/euskadi31/go-worker)
[](https://goreportcard.com/report/github.com/euskadi31/go-worker)
| Branch | Status | Coverage |
| ------ | --------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| master | [](https://github.com/euskadi31/go-worker/actions/workflows/go.yml) | [](https://coveralls.io/github/euskadi31/go-worker?branch=master) |Pool Worker fo Golang
## Example
```go
import (
"fmt""github.com/euskadi31/go-worker"
)pool := worker.New(10, 100, func(payload interface{}) {
val := payload.(int)fmt.Printf("Val: %d", val * val)
})pool.Start()
pool.Enqueue(1)
pool.Close()
```
## License
go-worker is licensed under [the MIT license](LICENSE.md).