Can you please provide an example? I am new to golang.
________________________________
From: Mhd Shulhan <[email protected]>
Sent: Monday, September 3, 2018 12:17:57 PM
To: [email protected]
Cc: golang-nuts
Subject: Re: [go-nuts] Listen by multiple goroutines via channels



On Mon, 3 Sep 2018, 13:03 , <[email protected]<mailto:[email protected]>> 
wrote:
I have a postgresql notification listener.

And i have thousands of different goroutines.

I am waiting to receive a single notification from each goroutine.


But only one channel is getting the value. Example: 
https://play.golang.org/p/1a4cVLad8db


But I am expecting, all user `Receiver()` should receive all the values to `ch`

That's mean all user will get the value from `1` to `10`

Any idea to achieve this?

The simple way to achieve this is using N master receiver that propagate value 
to all client receivers.

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to