Initial commit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
谢宇宁
2026-10-22 14:47:17 +07:00
co-authored by Claude Opus 5.5
commit 3639d2184a
574 changed files with 61690 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
package linode
import (
"errors"
"fmt"
"github.com/xxjwxc/gowp/workpool"
"testing"
)
func TestAA(t *testing.T) {
wp := workpool.New(100)
for i := 0; i < 200000; i++ {
var t = i
wp.Do(func() error {
fmt.Println(t)
if t == 22 {
return errors.New("111")
}
return nil
})
}
err := wp.Wait()
if err != nil {
fmt.Println("fail", err)
} else {
fmt.Println("OK")
}
}