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

Method close

tailnet/configmaps.go:206–217  ·  view source on GitHub ↗

close closes the configMaps and stops it configuring the engine

()

Source from the content-addressed store, hash-verified

204
205// close closes the configMaps and stops it configuring the engine
206func (c *configMaps) close() {
207 c.L.Lock()
208 defer c.L.Unlock()
209 for _, lc := range c.peers {
210 lc.resetLostTimer()
211 }
212 c.closing = true
213 c.Broadcast()
214 for c.phase != closed {
215 c.Wait()
216 }
217}
218
219// netMapLocked returns the current NetworkMap as determined by the config we
220// have. c.L must be held.

Callers

nothing calls this directly

Calls 4

resetLostTimerMethod · 0.80
WaitMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected