MCPcopy Create free account
hub / github.com/cogentcore/core / AddQuitCleanFunc

Method AddQuitCleanFunc

system/app.go:147–147  ·  view source on GitHub ↗

AddQuitCleanFunc adds the given function to a list that is called whenever app is actually about to quit (irrevocably). Can do any necessary last-minute cleanup here.

(fun func())

Source from the content-addressed store, hash-verified

145 // app is actually about to quit (irrevocably). Can do any necessary
146 // last-minute cleanup here.
147 AddQuitCleanFunc(fun func())
148
149 // QuitReq is a quit request, triggered either by OS or user call (e.g.,
150 // via Quit menu action) -- calls function previously registered by

Callers 2

initFunction · 0.65
initFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected