Please explain me(
I dont understand why syncmap - not sync
If i try Load/Store from multiple goroutins - i have vary values with same
key in syncmap
If i try lock with mutex- all ok. But is syncmap not thread safe by default?
Locked version of function:
And async test:
If i remove lock mutex from load/store of syncmap - test will pass or fail
- and i will have muliple values with same key.
What i do wrong?
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.