ch1-basic/ch1-06-goroutine #606
Replies: 6 comments 3 replies
-
这里的描述是不是反了? |
Beta Was this translation helpful? Give feedback.
-
锁那块最好用defer mu.Unlock()不然还是有概率出问题的 |
Beta Was this translation helpful? Give feedback.
-
最后一个例子PrimeFilter的入参类型为 : <-chan int,实际运行发现 <-chan int 和 chan int,这两个是一回事吗 |
Beta Was this translation helpful? Give feedback.
-
哎,倒数第二个例子,if i%prime != 0 的内层如果直接写out <- i会死锁的原因没有看懂…… |
Beta Was this translation helpful? Give feedback.
-
来一个goroutine、channel、context 的综合运用吧!!! |
Beta Was this translation helpful? Give feedback.
-
来一个goroutine、channel、context 的综合运用吧!!!
|
Beta Was this translation helpful? Give feedback.
-
ch1-basic/ch1-06-goroutine
Go语言高级编程
https://chai2010.cn/advanced-go-programming-book/ch1-basic/ch1-06-goroutine.html
Beta Was this translation helpful? Give feedback.
All reactions