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 because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
```
func wait(c chan T) T {
v := <-c
c <- v;
return v;
}
```
I had proposal for future primitive: https://github.com/golang/go/issues/17466 , but looks like community doesn't agree with my intention.
-- Juliusz