推荐两个goroutine pool

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

https://github.com/ivpusic/grpool 22
https://github.com/hnlq715/goroutine-pool 19

小丽:

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

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

fasthttp 开启 goroutine pool 先例

---- update ----

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


goroutine, pool


11111111111111111111111111111111111111111111

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