Stop stops all sample instances.
()
| 136 | |
| 137 | // Stop stops all sample instances. |
| 138 | func (m *Manager) Stop() { |
| 139 | m.mu.Lock() |
| 140 | defer m.mu.Unlock() |
| 141 | |
| 142 | for _, stopper := range m.stoppers { |
| 143 | if stopper != nil { |
| 144 | stopper() |
| 145 | } |
| 146 | } |
| 147 | m.stoppers = nil |
| 148 | } |
| 149 | |
| 150 | // Port returns the base port for sample instances. |
| 151 | func (m *Manager) Port() int { |
no outgoing calls