推荐两个goroutine pool
https://github.com/ivpusic/grpool
https://github.com/hnlq715/goroutine-pool
小丽:
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
0
See Also
Nearby
- 上一篇 › stackimpact 在线服务器监控
- 下一篇 › 阿里云开发者工具套件(SDK)- Go 实现
11111111111111111111111111111111111111111111