Think of a bounded variable no different than a bounded queue to solve the consumer—producer problem.
A very common use case is for me is to push to a single variable from one producer, and pull from that single variable from one consumer.
Go has a very simple solution: channels.
But I was curious: can we improve the performance?