生产消费模型-使用channel控制生产速度

package main import ( "fmt" "sync" ) type Producer struct { ID int DataStream chan int WaitGroup *sync.WaitGroup } func (p *Producer) Produce(concurre
posted @ 2023-08-01 10:34  知道了呀~  阅读(25)  评论(0编辑  收藏  举报