Go: One producer many consumers

后端 未结 4 1727
情话喂你
情话喂你 2021-02-02 13:56

So I have seen a lot of ways of implementing one consumer and many producers in Go - the classic fanIn function from the Concurrency in Go talk.

What I want is a fanOut

4条回答
  •  一个人的身影
    2021-02-02 14:07

    First, see related question What is the neatest idiom for producer/consumer in Go? and One thread showing interest in another thread (consumer / producer). Also, take a look to producer-consumer problem. About concurrency see how to achieve concurrency In Google Go.

提交回复
热议问题