初学golang的很多人对buffer大小为0和1的channel都不了解。

下面通过make(chan bool)make(chan bool, 1)的例子说明它们的区别。

……

Continue reading