Skip to content

Commit

Permalink
add: ants with error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatDiscovery committed Feb 8, 2025
1 parent 48d565a commit d71487d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/concurrent/ants_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func TestAnts(t *testing.T) {

func TestAntsWithError(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
wg := sync.WaitGroup{}

pool, err := ants.NewPoolWithFunc(10, func(i interface{}) {
Expand Down

0 comments on commit d71487d

Please sign in to comment.