IsStopped returns true if all services are in terminal state (Terminated or Failed)
()
| 142 | |
| 143 | // IsStopped returns true if all services are in terminal state (Terminated or Failed) |
| 144 | func (m *Manager) IsStopped() bool { |
| 145 | m.mu.Lock() |
| 146 | defer m.mu.Unlock() |
| 147 | |
| 148 | return m.state == stopped |
| 149 | } |
| 150 | |
| 151 | // AwaitStopped waits for the ServiceManager to become stopped. Returns nil, if manager is stopped, error when context finishes earlier. |
| 152 | func (m *Manager) AwaitStopped(ctx context.Context) error { |
no outgoing calls