Esempio n. 1
0
func Contains(obj types.Identifiable) bool {
	_mutex.RLock()
	defer _mutex.RUnlock()

	_, found := _data[obj.GetId()]
	return found
}
Esempio n. 2
0
func Remove(obj types.Identifiable) {
	RemoveId(obj.GetId())
}