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

Method StopAsync

pkg/util/services/service.go:70–70  ·  view source on GitHub ↗

StopAsync tell the service to stop. This method doesn't block and can be called multiple times. If Service is New, it is Terminated without having been started nor stopped. If Service is in Starting or Running state, this initiates shutdown and returns immediately. If Service has already been stoppe

()

Source from the content-addressed store, hash-verified

68 // If Service is in Starting or Running state, this initiates shutdown and returns immediately.
69 // If Service has already been stopped, this method returns immediately, without taking action.
70 StopAsync()
71
72 // AwaitTerminated waits for the service to reach Terminated or Failed state. If service is already in one of these states,
73 // when method is called, method returns immediately.

Callers 15

stopAllFunction · 0.65
StopMethod · 0.65
runningMethod · 0.65
TestRuler_TestShutdownFunction · 0.65
getRulesHATestFunction · 0.65
TestRuler_alertsFunction · 0.65
TestStopInNewFunction · 0.65
runTestCaseFunction · 0.65

Calls

no outgoing calls

Tested by 14

stopAllFunction · 0.52
TestRuler_TestShutdownFunction · 0.52
getRulesHATestFunction · 0.52
TestRuler_alertsFunction · 0.52
TestStopInNewFunction · 0.52
runTestCaseFunction · 0.52
ExampleServiceFunction · 0.52