Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ afterCtx
Function
afterCtx
cli/server.go:285–290 ·
view source on GitHub ↗
(ctx context.Context, fn func())
Source
from the content-addressed store, hash-verified
283
}
284
285
func
afterCtx(ctx context.Context, fn
func
()) {
286
go
func
() {
287
<-ctx.Done()
288
fn()
289
}()
290
}
291
292
func
enablePrometheus(
293
ctx context.Context,
Callers
1
enablePrometheus
Function · 0.85
Calls
1
Done
Method · 0.45
Tested by
no test coverage detected