golang无缓冲channel避坑点


输出结果顺序:

默认情况下,channel 接收和发送数据都是阻塞的,除非另一端已经准备好。

posted @ 2023-01-17 17:43  公众号海哥python  阅读(49)  评论(0)    收藏  举报