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

Method isClosed

provisionerd/provisionerd.go:631–638  ·  view source on GitHub ↗

isClosed returns whether the API is closed or not.

()

Source from the content-addressed store, hash-verified

629
630// isClosed returns whether the API is closed or not.
631func (p *Server) isClosed() bool {
632 select {
633 case <-p.closeContext.Done():
634 return true
635 default:
636 return false
637 }
638}
639
640// Shutdown gracefully exists with the option to cancel the active job.
641// If false, it will wait for the job to complete.

Callers 1

connectMethod · 0.95

Calls 1

DoneMethod · 0.45

Tested by

no test coverage detected