Reset pollers, this operation is very dangerous, please make sure to do this when calling !
()
| 119 | |
| 120 | // Reset pollers, this operation is very dangerous, please make sure to do this when calling ! |
| 121 | func (m *manager) Reset() error { |
| 122 | for _, poll := range m.polls { |
| 123 | poll.Close() |
| 124 | } |
| 125 | m.polls = nil |
| 126 | return m.Run() |
| 127 | } |
| 128 | |
| 129 | // Pick will select the poller for use each time based on the LoadBalance. |
| 130 | func (m *manager) Pick() Poll { |