How to recover from concurrent map writes?
as icza said:
If you would leave your app like that and it wouldn't crash, you could experience mysterious, undefined behavior at runtime.
If one goroutine fails to write to a map in case of "concurrent map writes", how about just panic("concurrent map writes")
instead of throw("concurrent map writes")
.