has returns true if and only if name is active
(name string)
| 141 | |
| 142 | // has returns true if and only if name is active |
| 143 | func (as *activeSet) has(name string) bool { |
| 144 | as.m.Lock() |
| 145 | defer as.m.Unlock() |
| 146 | _, found := as.set[name] |
| 147 | return found |
| 148 | } |
| 149 | |
| 150 | // drop takes a name out of the active set |
| 151 | func (as *activeSet) drop(name string) { |