Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Or even the simpler panic on concurrent read/write on maps.


In general, if one is trying to do a concurrent read/write on maps, one his "holding it wrong." Access to map data should usually be channel-gated with a goroutine serving as an accessor to the map data. Mutex-locked if you need it faster for some reason (though chans are already pretty fast).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: