package
0.0.1-20241014-0001
Repository: https://github.com/kyaxcorp/go-core.git
Documentation: pkg.go.dev
# Functions
New -> Creates a new concurrent map.
# Constants
No description provided by the author
# Structs
A "thread" safe map of type string:Anything.
A "thread" safe string to anything map.
No description provided by the author
Used by the Iter & IterBuffered functions to wrap two variables together over a channel,.
# Type aliases
Iterator callback,called for every key,value found in maps.
RemoveCb is a callback executed in a map.RemoveCb() call, while Lock is held If returns true, the element will be removed from the map.
Callback to return new element to be inserted into the map It is called while lock is held, therefore it MUST NOT try to access other keys in same map, as it can lead to deadlock since Go sync.RWLock is not reentrant.