sync.WaitGroup

add()  done()  wait()

相当于计数器,done会减一,wait会等待所有线程都执行完才执行下面代码

sync.pool

用来封装连接池

相关文章: