func open(url string, done chan bool) { // reading ... done <- true } done := make(chan bool) go open("http://goo.gl/ZYaS1", done) doSomeThingElse() <- done
哈哈,七牛的客服是挺有意思,我问过好几次了
#1 楼 @mjf429 敬请调戏 :)
额。。。。公司和我同一层。。。为什么叫七牛呢?
func open(url string, done chan bool) { // reading ... done <- true }
done := make(chan bool)
go open("http://goo.gl/ZYaS1", done)
doSomeThingElse()
<- done
哈哈