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

Method Close

coderd/database/pubsub/watchdog.go:58–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56}
57
58func (w *Watchdog) Close() error {
59 w.cancel()
60 w.wg.Wait()
61 return nil
62}
63
64// Timeout returns a channel that is closed if the watchdog times out. Note that the Timeout() chan
65// will NOT be closed if the Watchdog is Close'd or its context expires, so it is important to read

Callers 1

ServerMethod · 0.95

Calls 2

WaitMethod · 0.65
cancelMethod · 0.45

Tested by

no test coverage detected