MCPcopy
hub / github.com/grafana/dskit / StartAsync

Method StartAsync

services/manager.go:85–93  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
85func (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.
96func (m *Manager) StopAsync() {

Calls

no outgoing calls