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

Method Shutdown

coderd/aibridged/pool.go:249–258  ·  view source on GitHub ↗

Shutdown will close the cache which will trigger eviction of all the Bridge entries.

(_ context.Context)

Source from the content-addressed store, hash-verified

247
248// Shutdown will close the cache which will trigger eviction of all the Bridge entries.
249func (p *CachedBridgePool) Shutdown(_ context.Context) error {
250 p.shutDownOnce.Do(func() {
251 // Prevent new requests from being served.
252 close(p.shuttingDownCh)
253
254 p.cache.Close()
255 })
256
257 return nil
258}

Calls 2

DoMethod · 0.65
CloseMethod · 0.65