The answer depends on whether you have just one value or many. For a single
value (sometimes known as a "future"), I tend to pair a chan of struct{}
with a value to be set. To make the value available, set it, then close the
channel. Readers wait on the channel, then read the value.
For a successi
A value sent through a channel can be read by only one reader, so once its
read its no longer available to other readers is that right?
In what ways can I pass/communicate/distribute a value through a channel
and have it shared across an unknown number of readers?
--
You received this message