Count returns number of stored handles (for debugging)
()
| 95 | |
| 96 | // Count returns number of stored handles (for debugging) |
| 97 | func (hs *handleStore) Count() int { |
| 98 | if hs == nil { |
| 99 | return 0 |
| 100 | } |
| 101 | |
| 102 | count := 0 |
| 103 | hs.handles.Range(func(_, _ interface{}) bool { |
| 104 | count++ |
| 105 | return true |
| 106 | }) |
| 107 | return count |
| 108 | } |
no outgoing calls