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

Method Close

coderd/aibridged/aibridged.go:195–199  ·  view source on GitHub ↗

Close shuts down the server with a timeout of 5s.

()

Source from the content-addressed store, hash-verified

193
194// Close shuts down the server with a timeout of 5s.
195func (s *Server) Close() error {
196 ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
197 defer cancel()
198 return s.Shutdown(ctx)
199}

Callers 1

TestResolveIssuerFunction · 0.95

Calls 1

ShutdownMethod · 0.95

Tested by 1

TestResolveIssuerFunction · 0.76