Close stops the poller and closes the pool.
()
| 80 | |
| 81 | // Close stops the poller and closes the pool. |
| 82 | func (r *Registry) Close() { |
| 83 | if r == nil { |
| 84 | return |
| 85 | } |
| 86 | close(r.stop) |
| 87 | <-r.stopped |
| 88 | r.pool.Close() |
| 89 | } |
| 90 | |
| 91 | func (r *Registry) poll() { |
| 92 | defer close(r.stopped) |
no outgoing calls
no test coverage detected