空山新雨后,天气晚来秋 是不是干货,你说了算。 目录 姿势1 姿势2 姿势3 正常操作 非正常操作 源码对照分析 姿势1 来模拟一下场景: ch := make(chan struct{}) var flag int32 &