Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hellojukay/gopool
a goroutine pool
https://github.com/hellojukay/gopool
Last synced: 29 days ago
JSON representation
a goroutine pool
- Host: GitHub
- URL: https://github.com/hellojukay/gopool
- Owner: hellojukay
- License: bsd-3-clause
- Created: 2020-09-15T02:34:32.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-18T05:59:47.000Z (almost 4 years ago)
- Last Synced: 2024-06-19T15:04:19.378Z (5 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gopool
an extremely simple goroutine pool# example
```golang
package mainimport (
"time""github.com/hellojukay/gopool/pool"
)func main() {
var p = pool.New(20)
for {
p.Run(func() {
time.Sleep(time.Second * time.Duration(1))
})
}
}
```