is there a way to close a channel and drop not yet consumed elements?
b
bezrukov
08/31/2020, 12:56 PM
I would say you need to use backpressure (channel.send, instead of offer) in your producer job, and when you want to close a channel, you will cancel job and close channel.