我想知道在 goroutine 中等待的更好方法是什么,time.Sleep()或者<-time.After()?两者有什么区别,如何选择?谢谢。
time.Sleep()
<-time.After()
精慕HU
慕慕森
相关分类