ego008 avatar

推荐两个goroutine pool

🕦 by ego008

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

小丽:

1
2
3
pool.Go(func() {
    // do something
})

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

fasthttp 开启 goroutine pool 先例

---- update ----

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

💘 相关文章

评论

共1条关于"推荐两个goroutine pool"的评论

stranger avatar
#1 stranger 回复

11111111111111111111111111111111111111111111

写一条评论

Based on Golang + fastHTTP + sdb | go1.17.6 Processed in 0ms