AddOrGet for atomically and serially adding a value to the map if it does not exist. If the key is already in the map, the existing value is returned and LockingMapAddFunc is never invoked. If the key does not exist (or a ValueCheckFunc is defined and returns false), the LockingMapAddFunc is called
(string, LockingMapAddFunc)
| 58 | // the LockingMapAddFunc is called. We guarantee that it will only ever be invoked |
| 59 | // once at a time. I.e., it is never invoked concurrently. |
| 60 | AddOrGet(string, LockingMapAddFunc) (interface{}, error) |
| 61 | |
| 62 | // Set will add the value to the map if it does not exist and will overwrite |
| 63 | // the value in the map if it does exist. |
no outgoing calls