Closed sjtubinlong closed 10 months ago
Hey, can you explain what the issue is?
@wellle I create a producer in function ProduceWorker and it keep publish new item to the Queue. And a ConsumeWorker function keep consume item from the Queue. But I found that my consumer's consume function will never be called.
I just tried it, seems to work for me:
$ go run main.go
produce: 0
produce: 1
produce: 2
produce: 3
produce: 4
produce: 5
produce: 6
consume: 0
produce: 7
produce: 8
produce: 9
consume: 1
consume: 2
consume: 3
consume: 4
consume: 5
consume: 6
consume: 7
consume: 8
consume: 9
Closing as resolved.