panjf2000 / ants

🐜🐜🐜 ants is the most powerful and reliable pooling solution for Go.
https://ants.andypan.me/
MIT License
12.69k stars 1.36k forks source link

bug: alleviate the data race between Release() and Reboot() #333

Closed panjf2000 closed 2 months ago

panjf2000 commented 2 months ago

Follow up #330

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.90%. Comparing base (da22980) to head (d5724a2).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #333 +/- ## ========================================== + Coverage 90.88% 90.90% +0.02% ========================================== Files 11 11 Lines 834 836 +2 ========================================== + Hits 758 760 +2 Misses 51 51 Partials 25 25 ``` | [Flag](https://app.codecov.io/gh/panjf2000/ants/pull/333/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Andy+Pan) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/panjf2000/ants/pull/333/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Andy+Pan) | `90.90% <100.00%> (+0.02%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Andy+Pan#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.