MCPcopy 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
285func afterCtx(ctx context.Context, fn func()) {
286 go func() {
287 <-ctx.Done()
288 fn()
289 }()
290}
291
292func enablePrometheus(
293 ctx context.Context,

Callers 1

enablePrometheusFunction · 0.85

Calls 1

DoneMethod · 0.45

Tested by

no test coverage detected