[go-nuts] Re: Concurrently read map entries into a channel

2016-11-06 Thread leobalduf
On Sunday, 6 November 2016 05:00:33 UTC+1, Keith Randall wrote: > > > > On Saturday, November 5, 2016 at 7:48:27 AM UTC-7, leob...@gmail.com > wrote: >> >> Hey, >> >> I have a scenario where I need to iterate over (as many as possible) map >> entries and send them into a channel. >> The operati

[go-nuts] Concurrently read map entries into a channel

2016-11-05 Thread leobalduf
Hey, I have a scenario where I need to iterate over (as many as possible) map entries and send them into a channel. The operation on the other end of the channel can take a long time, so sends on the channel may block for a long time. The map is protected by an RWMutex. The map is also rather b