MCPcopy
hub / github.com/caddyserver/caddy / OnCancel

Method OnCancel

context.go:99–101  ·  view source on GitHub ↗

OnCancel executes f when ctx is canceled.

(f func())

Source from the content-addressed store, hash-verified

97
98// OnCancel executes f when ctx is canceled.
99func (ctx *Context) OnCancel(f func()) {
100 ctx.cleanupFuncs = append(ctx.cleanupFuncs, f)
101}
102
103// FileSystems returns a ref to the FilesystemMap.
104// EXPERIMENTAL: This API is subject to change.

Callers 2

openLogsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected