Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hellojukay/gopool

a goroutine pool
https://github.com/hellojukay/gopool

Last synced: 29 days ago
JSON representation

a goroutine pool

Awesome Lists containing this project

README

        

# gopool
an extremely simple goroutine pool

# example
```golang
package main

import (
"time"

"github.com/hellojukay/gopool/pool"
)

func main() {
var p = pool.New(20)
for {
p.Run(func() {
time.Sleep(time.Second * time.Duration(1))
})
}
}
```