Can you please provide an example? I am new to golang. ________________________________ From: Mhd Shulhan <m.shul...@gmail.com> Sent: Monday, September 3, 2018 12:17:57 PM To: anik3...@gmail.com Cc: golang-nuts Subject: Re: [go-nuts] Listen by multiple goroutines via channels
On Mon, 3 Sep 2018, 13:03 , <anik3...@gmail.com<mailto:anik3...@gmail.com>> 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 golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.