MCPcopy Create free account
hub / github.com/cortexproject/cortex / StartAsync

Method StartAsync

pkg/util/services/manager.go:77–85  ·  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

75// StartAsync initiates service startup on all the services being managed.
76// It is only valid to call this method if all of the services are New.
77func (m *Manager) StartAsync(ctx context.Context) error {
78 for _, s := range m.services {
79 err := s.StartAsync(ctx)
80 if err != nil {
81 return err
82 }
83 }
84 return nil
85}
86
87// StopAsync initiates service shutdown if necessary on all the services being managed.
88func (m *Manager) StopAsync() {

Calls

no outgoing calls