摘要: golang官方指南给了一些代码片段来,层层递进演示了信道的能力: 1>. 信号量 2>. 限流能力 var sem = make(chan int, MaxOutstanding) func Serve(queue chan *Request) { for req := range queue { 阅读全文
posted @ 2025-03-12 17:11 码甲哥不卷 阅读(607) 评论(0) 推荐(0)