Closed emar-kar closed 5 months ago
@emar-kar Any suggestions? Feel free to correct me if I am wrong, thanks a lot!
@WangYihang as far as I know, when you use make
it always allocates memory on the heap. As soon as channel escapes the function, I would say it will be collected. But it leads to unpredictable time of collection, especially if there is data in the channel. I would prefer to have more clear understanding when resources are being released. If the tasks have huge consumption, it will require more work from GC. Maybe I just nitpicking, but I think all those things can be avoided, by small defer with closing the channel.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
```diff @@ Coverage Diff @@ ## main #7 +/- ## ========================================== + Coverage 24.68% 24.77% +0.09% ========================================== Files 26 26 Lines 786 787 +1 ========================================== + Hits 194 195 +1 Misses 575 575 Partials 17 17 ```:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.