摘要: 1.select的用法。 func g1(ch1 chan struct{}) { time.Sleep(3 * time.Second) ch1 <- struct{}{} } func g2(ch2 chan struct{}) { time.Sleep(4 * time.Second) ch2 阅读全文
posted @ 2024-09-30 11:24 滴滴滴 阅读(27) 评论(0) 推荐(0)