摘要: 转载:https://blog.csdn.net/cj_286/article/details/79538505 go提供了sync包和channel来解决协程同步和通讯。 方式1: sync.WaitGroup是等待一组协程结束,sync.WaitGroup只有3个方法,Add()添加一个计数,D 阅读全文
posted @ 2018-11-27 17:56 叨叨的蜗牛 阅读(1351) 评论(0) 推荐(0)