摘要: 背景 golang中使用并发要考虑很多问题,如控制并发量、等待Goroutine执行完毕等。 看下面一段代码: var wg sync.WaitGroup count := 10 wg.Add(count) limitGoroutineCount := make(chan int,5) for i: 阅读全文
posted @ 2022-01-03 16:06 NetRookieX 阅读(24) 评论(0) 推荐(0) 编辑