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

Method StopAsync

services/service.go:70–70  ·  services/service.go::Service.StopAsync

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 10

stoppingMethod · 0.65
TestStopInNewFunction · 0.65
runTestCaseFunction · 0.65
ExampleServiceFunction · 0.65
TestIdleServiceFunction · 0.65
TestTimerServiceFunction · 0.65
StopAndAwaitTerminatedFunction · 0.65

Implementers 2

BasicServiceservices/basic_service.go
mockServicegrpcutil/health_check_test.go

Calls

no outgoing calls

Tested by 7

TestStopInNewFunction · 0.52
runTestCaseFunction · 0.52
ExampleServiceFunction · 0.52
TestIdleServiceFunction · 0.52
TestTimerServiceFunction · 0.52