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

Method AwaitTerminated

services/service.go:76–76  ·  view source on GitHub ↗

AwaitTerminated waits for the service to reach Terminated or Failed state. If service is already in one of these states, when method is called, method returns immediately. If service enters Terminated state, this method returns nil. If service enters Failed state, or context is finished before reach

(ctx context.Context)

Source from the content-addressed store, hash-verified

74 // If service enters Terminated state, this method returns nil.
75 // If service enters Failed state, or context is finished before reaching Terminated or Failed, error is returned.
76 AwaitTerminated(ctx context.Context) error
77
78 // FailureCase returns error if Service is in Failed state.
79 // If Service is not in Failed state, this method returns nil.

Implementers 2

BasicServiceservices/basic_service.go
mockServicegrpcutil/health_check_test.go

Calls

no outgoing calls