StartAsync initiates service startup on all the services being managed. It is only valid to call this method if all of the services are New.
(ctx context.Context)
| 83 | // StartAsync initiates service startup on all the services being managed. |
| 84 | // It is only valid to call this method if all of the services are New. |
| 85 | func (m *Manager) StartAsync(ctx context.Context) error { |
| 86 | for _, s := range m.services { |
| 87 | err := s.StartAsync(ctx) |
| 88 | if err != nil { |
| 89 | return err |
| 90 | } |
| 91 | } |
| 92 | return nil |
| 93 | } |
| 94 | |
| 95 | // StopAsync initiates service shutdown if necessary on all the services being managed. |
| 96 | func (m *Manager) StopAsync() { |
no outgoing calls