sync.WaitGroup add() done() wait() 相当于计数器,done会减一,wait会等待所有线程都执行完才执行下面代码 sync.pool 用来封装连接池 转载于:https://www.cnblogs.com/zipon/p/11379156.html