We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sync.Map is like a Go map[interface{}]interface{} but is safe for concurrent use by multiple goroutines without additional locking or coordination.
map[interface{}]interface{}
sync.Map is more reliable and efficient than default build-in Map + Mutex.
ConcurrentMap
States
StatesMap
string
*State
The text was updated successfully, but these errors were encountered:
daniel-hutao
Successfully merging a pull request may close this issue.
Description
sync.Map is like a Go
map[interface{}]interface{}
but is safe for concurrent use by multiple goroutines without additional locking or coordination.sync.Map is more reliable and efficient than default build-in Map + Mutex.
Describe the Proposal
ConcurrentMap
type to package sync.Map & keyType & valueTypeStates
toStatesMap
, States & State are a bit confusingConcurrentMap
with keyTypestring
& valueType*State
to redefineStatesMap
The text was updated successfully, but these errors were encountered: