Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
282
func
(sc *StatsCollector) Close() error {
283
sc.cancel()
284
<-sc.done
285
return
nil
286
}
287
288
func
(sc *StatsCollector) start() {
289
defer
func
() {
Callers
1
TestStatsCollector_Close
Function · 0.95
Calls
1
cancel
Method · 0.45
Tested by
1
TestStatsCollector_Close
Function · 0.76