v2.8.0
版本发布时间: 2023-07-01 21:44:44
panjf2000/ants最新发布版本:v2.10.0(2024-06-18 17:36:44)
🚀 Features
- feat: add a new API
ReleaseTimeout
for the default pool (#285)
🛩 Enhancements
- feat: add a new API
ReleaseTimeout
for the default pool (#285) - bug: avoid overflow when computing mid in the binarySearch of the workerStack (#278)
- opt: refactor the worker queue for reusability and readability of code (#270)
- opt: awake blocking goroutines more precisely in purgeStaleWorkers b32591f8bda98a7774ba4ec312cfc440aabb3be4
- opt: use runtime/debug.Stack() to print stack trace of panic 7a56a5c082182514385a91145b3f7dac01b6e0a2
- opt: refactor the worker queue for reusability and readability of code 0313effc53ee00ee453f526367737214cc1c339b
- opt: refine some code b6eaea118bdeadff62fc6e0d519d4287cc92d62c
🐛 Bugfixes
- bug: avoid overflow when computing mid in the binarySearch of the workerStack (#278)
- bug: fix the missing log.Lmsgprefix in go1.13 (#275)
- fix: exit ticktock goroutine when pool is closed (#264)
📚 Documentation
- doc: update use cases 33c77540bd1c161998dabe8c3736486b46c9ca5f
- chore: update READMEs b9ac4d4730a1c3f216aad408eaabd5b9c24e50ba
🧳 Misc
- chore: reorganize the structure of internal packages 711cad96247f796614bca29f0bcfb3f49b6d95bd
- chore: reformat the default log string 3110e41921923cd446e6d8add193a932d37ef167
Full Changelog: https://github.com/panjf2000/ants/compare/v2.7.0...v2.8.0
Thanks to all these contributors: @ELchem, @GlebRadchenko, @gocurr, @panjf2000 and @piaodazhu for making this release possible.