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