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

Method Close

coderd/workspaceapps/stats.go:282–286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

280}
281
282func (sc *StatsCollector) Close() error {
283 sc.cancel()
284 <-sc.done
285 return nil
286}
287
288func (sc *StatsCollector) start() {
289 defer func() {

Callers 1

TestStatsCollector_CloseFunction · 0.95

Calls 1

cancelMethod · 0.45

Tested by 1

TestStatsCollector_CloseFunction · 0.76