3 ms·
Actually, this is exactly a scenario in which a sync.Map would be useful. Typically, you would use pointers to atomic integers as the sync.Map values in a case
by blaisio 8y ago
Actually, this is exactly a scenario in which a sync.Map would be useful. Typically, you would use pointers to atomic integers as the sync.Map values in a case like this.