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

Method notifyHandlers

pkg/wconfig/filewatcher.go:127–137  ·  view source on GitHub ↗
(config FullConfigType)

Source from the content-addressed store, hash-verified

125}
126
127func (w *Watcher) notifyHandlers(config FullConfigType) {
128 handlers := w.handlers
129 for _, handler := range handlers {
130 go func(h ConfigUpdateHandler) {
131 defer func() {
132 panichandler.PanicHandler("filewatcher:notifyHandlers", recover())
133 }()
134 h(config)
135 }(handler)
136 }
137}
138
139func (w *Watcher) GetFullConfig() FullConfigType {
140 w.mutex.Lock()

Callers 1

broadcastMethod · 0.95

Calls 1

PanicHandlerFunction · 0.92

Tested by

no test coverage detected