MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / RegisterAppInitFn

Function RegisterAppInitFn

tsunami/app/defaultclient.go:55–57  ·  view source on GitHub ↗

RegisterAppInitFn registers a single setup function that is called before the app starts running. Only one setup function is allowed, so calling this will replace any previously registered setup function.

(fn func() error)

Source from the content-addressed store, hash-verified

53// Only one setup function is allowed, so calling this will replace any previously registered
54// setup function.
55func RegisterAppInitFn(fn func() error) {
56 engine.GetDefaultClient().RegisterAppInitFn(fn)
57}
58
59// SendAsyncInitiation notifies the frontend that the backend has updated state
60// and requires a re-render. Normally the frontend calls the backend in response

Callers

nothing calls this directly

Calls 2

GetDefaultClientFunction · 0.92
RegisterAppInitFnMethod · 0.80

Tested by

no test coverage detected