MCPcopy Create free account
hub / github.com/coder/coder / Close

Method Close

enterprise/tailnet/connio.go:279–289  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

277}
278
279func (c *connIO) Close() error {
280 c.mu.Lock()
281 defer c.mu.Unlock()
282 if c.closed {
283 return nil
284 }
285 c.cancel()
286 c.closed = true
287 close(c.responses)
288 return nil
289}

Callers 2

recvLoopMethod · 0.95
CoordinatorCloseMethod · 0.95

Calls 3

LockMethod · 0.45
UnlockMethod · 0.45
cancelMethod · 0.45

Tested by

no test coverage detected