推荐两个goroutine pool

By ego008 at 2018-03-05 18:59 • 883次点击
ego008

https://github.com/ivpusic/grpool 37
https://github.com/hnlq715/goroutine-pool 46

小丽:

pool.Go(func() {
    // do something
})

后者借鉴 fasthttp worker Pool https://github.com/valyala/fasthttp/blob/master/workerpool.go 17

fasthttp 开启 goroutine pool 先例

---- update ----

另一个 goroutine pool
https://github.com/gobwas/ws-examples/blob/master/src/gopool/pool.go 16


goroutine, pool


11111111111111111111111111111111111111111111

stranger at 2018-03-06 22:36
1
登录 后发表评论