Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
谢小军 authored and 谢小军 committed Sep 15, 2019
1 parent 4254ac6 commit ea0628b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion workerpool/workerpool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import (

//template
func TestWorkerPoolStart(t *testing.T) {
wp := New(10) //Set the maximum number of threads,设置最大线程数
wp := New(10) //Set the maximum number of threads,设置最大线程数
wp.SetTimeout(time.Millisecond)
for i := 0; i < 20; i++ { //Open 20 requests 开启20个请求
ii := i
wp.Do(func() error {
Expand Down

0 comments on commit ea0628b

Please sign in to comment.