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

Method Shutdown

aibridge/mcp/server_proxy_manager.go:122–130  ·  view source on GitHub ↗

Shutdown concurrently shuts down all known proxiers and waits for them *all* to complete.

(ctx context.Context)

Source from the content-addressed store, hash-verified

120
121// Shutdown concurrently shuts down all known proxiers and waits for them *all* to complete.
122func (s *ServerProxyManager) Shutdown(ctx context.Context) error {
123 cg := utils.NewConcurrentGroup()
124 for _, proxy := range s.proxiers {
125 cg.Go(func() error {
126 return proxy.Shutdown(ctx)
127 })
128 }
129 return cg.Wait()
130}

Callers 1

setupMCPForTestWithNameFunction · 0.95

Calls 4

GoMethod · 0.95
WaitMethod · 0.95
NewConcurrentGroupFunction · 0.92
ShutdownMethod · 0.65

Tested by

no test coverage detected