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

Method isClosed

agent/agent.go:2099–2101  ·  view source on GitHub ↗

isClosed returns whether the API is closed or not.

()

Source from the content-addressed store, hash-verified

2097
2098// isClosed returns whether the API is closed or not.
2099func (a *agent) isClosed() bool {
2100 return a.hardCtx.Err() != nil
2101}
2102
2103func (a *agent) requireNetwork() (*tailnet.Conn, bool) {
2104 a.closeMutex.Lock()

Callers 3

runLoopMethod · 0.95
createTailnetMethod · 0.95
CloseMethod · 0.95

Calls 1

ErrMethod · 0.80

Tested by

no test coverage detected