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

2016-11-07 Thread Jesper Louis Andersen
On Sat, Nov 5, 2016 at 3:47 PM wrote: > > The map is also rather big and I want to avoid creating a temporary copy > of it. > > > In Erlang, you have a call on ETS tables called ets:safe_fixtable(Table, Fix). This makes the table safe for traversal until you remove the fix again. The rule is that

[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