Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#42·go-patterns

pool should use sync.Pool

Author: darrylwestCreated Sep 26, 2017Updated Dec 31, 2022

the use of channels to control the pool is fine, but IMHO it's much better to use the sync.Pool from the stdlib

Source: tmrts/go-patterns

View original on GitHubView discussion on GitHub