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

Method Close

coderd/workspaceconnwatcher/watcher.go:148–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146}
147
148func (w *Watcher) Close() {
149 w.mu.Lock()
150 w.closed = true
151 w.mu.Unlock()
152
153 w.cancel()
154 w.wg.Wait()
155}
156
157type updater struct {
158 db database.Store

Callers 1

NewFunction · 0.95

Calls 4

WaitMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45
cancelMethod · 0.45

Tested by

no test coverage detected