refactor(concurrency): simplify some waitgroup usage, remove extra wg.Done in wg.Go left in 11af9d1 in io.go

This commit is contained in:
yusing
2025-08-17 00:23:54 +08:00
parent b32750d545
commit 0862920324
5 changed files with 4 additions and 13 deletions

View File

@@ -128,7 +128,6 @@ func TestFinishMultipleCalls(t *testing.T) {
task := testTask()
var wg sync.WaitGroup
n := 20
wg.Add(n)
for range n {
wg.Go(func() {
task.Finish(nil)