MCPcopy
hub / github.com/kopia/kopia / RegisterOnExit

Method RegisterOnExit

cli/app.go:223–225  ·  view source on GitHub ↗

RegisterOnExit registers the provided function to run before app exits.

(f func())

Source from the content-addressed store, hash-verified

221
222// RegisterOnExit registers the provided function to run before app exits.
223func (c *App) RegisterOnExit(f func()) {
224 c.onExitCallbacks = append(c.onExitCallbacks, f)
225}
226
227// runOnExit runs all registered on-exit callbacks.
228func (c *App) runOnExit() {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected