MCPcopy Index your code
hub / github.com/coder/coder / isShutdown

Method isShutdown

coderd/aibridged/aibridged.go:158–165  ·  view source on GitHub ↗

isShutdown returns whether the Server is shutdown or not.

()

Source from the content-addressed store, hash-verified

156
157// isShutdown returns whether the Server is shutdown or not.
158func (s *Server) isShutdown() bool {
159 select {
160 case <-s.lifecycleCtx.Done():
161 return true
162 default:
163 return false
164 }
165}
166
167// Shutdown waits for all exiting in-flight requests to complete, or the context to expire, whichever comes first.
168func (s *Server) Shutdown(ctx context.Context) error {

Callers 1

connectMethod · 0.95

Calls 1

DoneMethod · 0.45

Tested by

no test coverage detected